Instance Method インスタンスメソッド

scanHexDouble:

Scans for a double value from a hexadecimal representation, returning a found value by reference. ある16進法表現からdouble値を走査します、見つかった値を参照によって返します。

Declaration 宣言

- (BOOL)scanHexDouble:(double *)result;

Parameters パラメータ

result 結果

Upon return, contains the scanned value. Contains HUGE_VAL or –HUGE_VAL on overflow, or 0.0 on underflow. 戻りでは、走査された値を含みます。HUGE_VALまたは–HUGE_VALをオーバーフローでは、または0.0をアンダーフローでは含みます。

Return Value 戻り値

YES if the receiver finds a valid double-point representation, otherwise NO. Overflow or underflow are both considered valid floating-point representations. YES、もしレシーバが有効なdouble-point表現を見つけるならば、そうでなければNO。オーバーフローまたはアンダーフローは、両方とも有効な浮動小数点表現とみなされます。

Discussion 議論

This corresponds to %a or %A formatting. The hexadecimal double representation must be preceded by 0x or 0X. これは、%aまたは%A書式設定に相当します。16進法のdouble表現は、0xまたは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. NULLresultとしてこのメソッドを発動すると、単純にひとつの16進法double表現を越えて走査します。

See Also 参照

Scanning Numeric Values 数値を走査する