Instance Method

scanDecimal:

Scans for an NSDecimal value, returning a found value by reference.

Declaration

- (BOOL)scanDecimal:(NSDecimal *)dcm;

Parameters

decimalValue

Upon return, contains the scanned value. See the NSDecimalNumber class specification for more information about NSDecimal values.

Return Value

YES if the receiver finds a valid NSDecimal representation, otherwise NO.

Discussion

Invoke this method with NULL as decimalValue to simply scan past an NSDecimal representation.

See Also

Scanning Numeric Values

- scanDouble:

Scans for a double value, returning a found value by reference.

- scanFloat:

Scans for a float value, returning a found value by reference.

- scanHexDouble:

Scans for a double value from a hexadecimal representation, returning a found value by reference.

- scanHexFloat:

Scans for a double value from a hexadecimal representation, returning a found value by reference.

- scanHexInt:

Scans for an unsigned value from a hexadecimal representation, returning a found value by reference.

- scanHexLongLong:

Scans for a long long value from a hexadecimal representation, returning a found value by reference.

- scanInteger:

Scans for an NSInteger value from a decimal representation, returning a found value by reference

- scanInt:

Scans for an int value from a decimal representation, returning a found value by reference.

- scanLongLong:

Scans for a long long value from a decimal representation, returning a found value by reference.

- scanUnsignedLongLong:

Scans for an unsigned long long value from a decimal representation, returning a found value by reference.