---
updatedAt: 2026-04-20T20:01:52.000Z
---

# decimal data type

Stores either whole numbers (integers) or decimal numbers. When creating a **decimal** attribute the following validations and transformations are available to you:

| **Validation/Transformation** | **Description**                                                                                                                                                                                                                                                                                                                                                                               |
| :---------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Unique                        | **Globally unique** attributes must be unique among all the entities in the entity type. **Locally unique** attributes must be unique across all the plural attributes in a single entity (e.g., a single user profile).<br /><br />![](https://techdocs.akamai.com/identity-cloud/img/console/managing-schemas/creating-and-deleting-schemas/schema-type-reference/schema-datatypes-005.png) |
| Required                      | The attribute must contain a non-null value.                                                                                                                                                                                                                                                                                                                                                  |
| Primary Key                   | Makes the attribute a primary key for the plural or entity type it exists in; this enables you to use API calls to target a specific record in a plural without knowing the actual identifier for that record. To set a primary key you also need the required constraint and either a unique or a locally-unique constraint.                                                                 |
| Searchable                    | Indicates that the attribute can be used in a Console search (searchable attributes are typically referred to as indexed attributes).<br /><br />![](https://techdocs.akamai.com/identity-cloud/img/console/managing-schemas/creating-and-deleting-schemas/schema-type-reference/schema-datatypes-009.png)                                                                                    |
| Write Once                    | Attributes that can be written to one time, then are never changed.<br /><br />![](https://techdocs.akamai.com/identity-cloud/img/console/managing-schemas/creating-and-deleting-schemas/schema-type-reference/schema-datatypes-010.png)                                                                                                                                                      |

# Sibling pages

* [boolean data type](https://techdocs.akamai.com/identity-cloud/docs/the-boolean-data-tpe.md)
* [date data type](https://techdocs.akamai.com/identity-cloud/docs/the-date-data-type.md)
* [datetime data type](https://techdocs.akamai.com/identity-cloud/docs/the-datetime-data-type.md)
* [integer data type](https://techdocs.akamai.com/identity-cloud/docs/the-integer-data-type.md)
* [ipAddress data type](https://techdocs.akamai.com/identity-cloud/docs/the-ipaddress-data-type.md)
* [json data type](https://techdocs.akamai.com/identity-cloud/docs/the-json-data-type.md)
* [object data type](https://techdocs.akamai.com/identity-cloud/docs/the-object-data-type.md)
* [plural data type](https://techdocs.akamai.com/identity-cloud/docs/the-plural-data-type.md)
* [string data type](https://techdocs.akamai.com/identity-cloud/docs/the-string-data-type.md)