# Decimal

A fixed point signed decimal number with 64 bits to the left of the decimal point and 19 decimal digits of precision after the point.

## [](#_storage_representation)Storage representation

A decimal number is stored as a 64-bit signed integer part, and an unsigned 19-digit fractional part. As a consequence, the range of values for decimal is from −263 to 263 − 10−19 (inclusive).

## [](#_defining_a_decimal_valued_attribute)Defining a decimal valued attribute

```typeql
#!test[schema]
define
  attribute account-balance value decimal;
```

## [](#_inserting_a_decimal_valued_attribute)Inserting a decimal valued attribute

```typeql
#!test[write]
insert
  $_ isa account-balance 0.02dec;
```

[Double](../double/index.md) [String](../string/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/typeql-reference/modules/ROOT/pages/values/decimal.adoc) Edit this page on GitHub.