---
title: CMTimeRoundingMethod
framework: coremedia
role: symbol
role_heading: Enumeration
path: coremedia/cmtimeroundingmethod
---

# CMTimeRoundingMethod

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

## Declaration

```swift
enum CMTimeRoundingMethod
```

## Topics

### Default Rounding Method

- [default](coremedia/cmtimeroundingmethod/default.md)

### Rounding Methods

- [CMTimeRoundingMethod.roundHalfAwayFromZero](coremedia/cmtimeroundingmethod/roundhalfawayfromzero.md)
- [CMTimeRoundingMethod.roundAwayFromZero](coremedia/cmtimeroundingmethod/roundawayfromzero.md)
- [CMTimeRoundingMethod.roundTowardZero](coremedia/cmtimeroundingmethod/roundtowardzero.md)
- [CMTimeRoundingMethod.quickTime](coremedia/cmtimeroundingmethod/quicktime.md)
- [CMTimeRoundingMethod.roundTowardPositiveInfinity](coremedia/cmtimeroundingmethod/roundtowardpositiveinfinity.md)
- [CMTimeRoundingMethod.roundTowardNegativeInfinity](coremedia/cmtimeroundingmethod/roundtowardnegativeinfinity.md)

### Initializers

- [init(rawValue:)](coremedia/cmtimeroundingmethod/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Changing the Timescale

- [CMTimeConvertScale(_:timescale:method:)](coremedia/cmtimeconvertscale(_:timescale:method:).md)
