Enumeration

NumberFormatter.Behavior

These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior() class method and the formatterBehavior property.

Declaration

enum Behavior : UInt

Topics

Constants

case `default`

The number-formatter behavior set as the default for new instances. You can set the default formatter behavior with the class method setDefaultFormatterBehavior(_:).

case behavior10_0

The number-formatter behavior as it existed prior to macOS 10.4.

case behavior10_4

The number-formatter behavior since macOS 10.4.

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