Type Property

notANumber

A decimal number that specifies no number.

Declaration

@NSCopying class var notANumber: NSDecimalNumber { get }

Return Value

An NSDecimalNumber object that specifies no number.

Discussion

Any arithmetic method receiving notANumber as an argument returns notANumber.

This value can be a useful way of handling non-numeric data in an input file. This method can also be a useful response to calculation errors. For more information on calculation errors, see the exceptionDuringOperation(_:error:leftOperand:rightOperand:) method description in the NSDecimalNumberBehaviors protocol specification.

See Also

Creating a Decimal Number

class var one: NSDecimalNumber

A decimal number equivalent to the number 1.0.

class var zero: NSDecimalNumber

A decimal number equivalent to the number 0.0.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software