Enumeration Case

NSDecimalNumber.RoundingMode.bankers

Round to the closest possible return value; when halfway between two possibilities, return the possibility whose last digit is even.

Declaration

case bankers = 3

Discussion

In practice, this means that, over the long run, numbers will be rounded up as often as they are rounded down; there will be no systematic bias.

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