<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeRoundingMethod",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@E@CMTimeRoundingMethod"
  },
  "title" : "CMTimeRoundingMethod"
}
-->

# CMTimeRoundingMethod

An enumeration of rounding methods to use when performing time calculations.

```
enum CMTimeRoundingMethod
```

## Topics

### Default Rounding Method

[`default`](/documentation/CoreMedia/CMTimeRoundingMethod/default)

The default rounding method.

### Rounding Methods

[`CMTimeRoundingMethod.roundHalfAwayFromZero`](/documentation/CoreMedia/CMTimeRoundingMethod/roundHalfAwayFromZero)

Rounds half away from zero.

[`CMTimeRoundingMethod.roundAwayFromZero`](/documentation/CoreMedia/CMTimeRoundingMethod/roundAwayFromZero)

Rounds away from zero.

[`CMTimeRoundingMethod.roundTowardZero`](/documentation/CoreMedia/CMTimeRoundingMethod/roundTowardZero)

Rounds toward zero.

[`CMTimeRoundingMethod.quickTime`](/documentation/CoreMedia/CMTimeRoundingMethod/quickTime)

Rounds using the QuickTime method.

[`CMTimeRoundingMethod.roundTowardPositiveInfinity`](/documentation/CoreMedia/CMTimeRoundingMethod/roundTowardPositiveInfinity)

Rounds toward positive infinity.

[`CMTimeRoundingMethod.roundTowardNegativeInfinity`](/documentation/CoreMedia/CMTimeRoundingMethod/roundTowardNegativeInfinity)

Rounds toward negative infinity.



---

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)