Instance Method

description(withLocale:)

Returns a string representation of the decimal number appropriate for the specified locale.

Declaration

func description(withLocale locale: Any?) -> String

Parameters

locale

Either an instance of NSLocale or a dictionary with a string value corresponding to the decimalSeparator key.

Discussion

This is a convenience method for calling the NSDecimalString(_:_:) function.

See Also

Accessing the Value

var decimalValue: Decimal

The decimal number’s value, expressed as an Decimal structure.

var doubleValue: Double

The decimal number’s closest approximate double value.

var objCType: UnsafePointer<Int8>

A C string containing the Objective-C type for the data contained in the decimal number object.