<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFNumberFormatterRoundingMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFNumberFormatterRoundingMode"
  },
  "title" : "CFNumberFormatterRoundingMode"
}
-->

# CFNumberFormatterRoundingMode

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

```
enum CFNumberFormatterRoundingMode
```

## Topics

### Constants

[`CFNumberFormatterRoundingMode.roundCeiling`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundCeiling)

Round towards positive infinity.

[`CFNumberFormatterRoundingMode.roundFloor`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundFloor)

Round towards negative infinity.

[`CFNumberFormatterRoundingMode.roundDown`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundDown)

Round towards zero.

[`CFNumberFormatterRoundingMode.roundUp`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundUp)

Round away from zero.

[`CFNumberFormatterRoundingMode.roundHalfEven`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundHalfEven)

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

[`CFNumberFormatterRoundingMode.roundHalfDown`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundHalfDown)

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

[`CFNumberFormatterRoundingMode.roundHalfUp`](/documentation/CoreFoundation/CFNumberFormatterRoundingMode/roundHalfUp)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)