File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -79,30 +79,19 @@ public struct ${Self} {
79
79
80
80
extension ${ Self} : CustomStringConvertible {
81
81
/// A textual representation of the value.
82
- @inlinable
83
82
public var description: String {
84
- if isFinite {
85
- return _float ${ bits} ToString( self , debug: false )
86
- } else if isNaN {
83
+ if isNaN {
87
84
return " nan "
88
- } else if sign == . minus {
89
- return " -inf "
90
85
} else {
91
- return " inf "
86
+ return _float $ { bits } ToString ( self , debug : false )
92
87
}
93
88
}
94
89
}
95
90
96
91
extension ${ Self} : CustomDebugStringConvertible {
97
92
/// A textual representation of the value, suitable for debugging.
98
93
public var debugDescription: String {
99
- if isFinite || isNaN {
100
- return _float ${ bits} ToString( self , debug: true )
101
- } else if sign == . minus {
102
- return " -inf "
103
- } else {
104
- return " inf "
105
- }
94
+ return _float ${ bits} ToString( self , debug: true )
106
95
}
107
96
}
108
97
You can’t perform that action at this time.
0 commit comments