<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSAttributeDescription/AttributeType-swift.struct/decimal",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Data",
      "CoreData"
    ],
    "preciseIdentifier" : "s:So22NSAttributeDescriptionC8CoreDataE13AttributeTypeV7decimalAEvpZ"
  },
  "title" : "decimal"
}
-->

# decimal

An attribute that stores a decimal value.

```
static let decimal: NSAttributeDescription.AttributeType
```

## Discussion

Use instances of <doc://com.apple.documentation/documentation/Foundation/NSDecimalNumber> when reading and writing attributes of this type.

---

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)