---
title: roundingMode()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsdecimalnumberbehaviors/roundingmode()
---

# roundingMode()

Returns the way that NSDecimalNumber’s decimalNumberBy... methods round their return values.

## Declaration

```swift
func roundingMode() -> NSDecimalNumber.RoundingMode
```

## Return Value

Return Value Returns the current rounding mode. See NSDecimalNumber.RoundingMode for possible values.

## See Also

### Related Documentation

- [Number and Value Programming Topics](apple-archive/documentation/Cocoa/Conceptual/NumbersandValues.md)

### Rounding

- [scale()](foundation/nsdecimalnumberbehaviors/scale().md)
