scanFloat(_:)
Scans for a float value, returning a found value by reference.
Declaration
func scanFloat(_ result: UnsafeMutablePointer<Float>?) -> BoolParameters
- result:
Upon return, contains the scanned value. Contains
HUGE_VALor–HUGE_VALon overflow, or0.0on underflow.
Return Value
true if the receiver finds a valid floating-point representation, otherwise false. Overflow or underflow are both considered valid floating-point representations.
Discussion
Skips past excess digits in the case of overflow, so the scanner’s position is past the entire floating-point representation.
Invoke this method with NULL as floatValue to simply scan past a float value representation. Floating-point representations are assumed to be IEEE compliant.