Enumeration

CFNumberFormatterRoundingMode

These constants are used to specify how numbers should be rounded.

Declaration

enum CFNumberFormatterRoundingMode : CFIndex

Topics

Constants

case roundCeiling

Round towards positive infinity.

case roundFloor

Round towards negative infinity.

case roundDown

Round towards zero.

case roundUp

Round away from zero.

case roundHalfEven

Round towards the nearest integer, or towards an even number if equidistant.

case roundHalfDown

Round towards the nearest integer, or towards zero if equidistant.

case roundHalfUp

Round towards the nearest integer, or away from zero if equidistant.