---
title: decimalValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsnumber/decimalvalue
---

# decimalValue

The number object’s value expressed as an Decimal structure.

## Declaration

```swift
var decimalValue: Decimal { get }
```

## Discussion

Discussion The Decimal value isn’t guaranteed to be exact for float and double values.

## See Also

### Accessing Numeric Values

- [boolValue](foundation/nsnumber/boolvalue.md)
- [int8Value](foundation/nsnumber/int8value.md)
- [doubleValue](foundation/nsnumber/doublevalue.md)
- [floatValue](foundation/nsnumber/floatvalue.md)
- [int32Value](foundation/nsnumber/int32value.md)
- [intValue](foundation/nsnumber/intvalue-95zzp.md)
- [int64Value](foundation/nsnumber/int64value.md)
- [int16Value](foundation/nsnumber/int16value.md)
- [uint8Value](foundation/nsnumber/uint8value.md)
- [uintValue](foundation/nsnumber/uintvalue.md)
- [uint32Value](foundation/nsnumber/uint32value.md)
- [uint64Value](foundation/nsnumber/uint64value.md)
- [uint16Value](foundation/nsnumber/uint16value.md)
