Type Method


Sets the default formatter behavior for new instances of NSNumberFormatter .


class func setDefaultFormatterBehavior(_ behavior: NumberFormatter.Behavior)



An NSNumberFormatterBehavior constant that indicates the revision of the class providing the default behavior.

See Also

Configuring Formatter Behavior and Style

var formatterBehavior: NumberFormatter.Behavior

The formatter behavior of the receiver.

class func defaultFormatterBehavior() -> NumberFormatter.Behavior

Returns an NSNumberFormatterBehavior constant that indicates default formatter behavior for new instances of NSNumberFormatter.

var numberStyle: NumberFormatter.Style

The number style used by the receiver.

var generatesDecimalNumbers: Bool

Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects.