scanHexDouble(_:)
Scans for a double value from a hexadecimal representation, returning a found value by reference.
Declaration
func scanHexDouble(_ result: UnsafeMutablePointer<Double>?) -> 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 double-point representation, otherwise false. Overflow or underflow are both considered valid floating-point representations.
Discussion
This corresponds to %a or %A formatting. The hexadecimal double representation must be preceded by 0x or 0X.
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 result to simply scan past a hexadecimal double representation.