We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d5eb5b commit 2a47658Copy full SHA for 2a47658
stdlib/public/core/FloatingPointParsing.swift.gyb
@@ -157,6 +157,12 @@ extension ${Self}: LosslessStringConvertible {
157
/// ${Self}("0x1.25e4") // Incorrect exponent format
158
///
159
/// - Parameter text: An input string to convert to a `${Self}?` instance.
160
+ ///
161
+ /// Backwards compatibility note: Prior to Swift 5.4, a decimal or
162
+ /// hexadecimal input string whose value was too large to represent
163
+ /// as a finite `${Self}` instance would return `nil` instead of
164
+ /// `${Self}.infinity`.
165
166
@inlinable
167
public init?<S: StringProtocol>(_ text: S) {
168
%if bits == 16:
0 commit comments