> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Number

> Quantities, sums and metrics

Number attributes store floating point numbers with up to four decimal places of precision.

An example of a number attribute is the `twitter_follower_count` attribute on both the company and person objects.

Only single-select number attributes are supported.

### Reading values

Number attribute values have a `value` property:

<CodeGroup>
  ```jsonc Example: 14 Twitter followers theme={"system"}
  {
    "active_from": "2023-04-03T15:21:06.447000000Z",
    "active_until": null,
    "created_by_actor": {
      /*...*/
    },
    "attribute_type": "number",
    "value": 14
  }
  ```
</CodeGroup>

### Writing values

To write number values, simply pass your desired number, either as an integer or a float. Alternatively, you can use an object with a single `value` property.

<CodeGroup>
  ```json Using number theme={"system"}
  {
    "a_custom_number_attribute": 3.1415
  }
  ```

  ```json Using object theme={"system"}
  {
    "a_custom_number_attribute": [
      {
        "value": 3.1415
      }
    ]
  }
  ```
</CodeGroup>

Please note that `twitter_follower_count` is a system attribute and cannot be written to from the API.

### Filtering

Numbers can be filtered by the operators `$eq`, `$gte`, `$gt`,`$lte`,`$lt`. The implicit syntax does an exact equality check:

<CodeGroup>
  ```json Finding records with 14 Twitter followers theme={"system"}
  {
    "filter": {
      "twitter_follower_count": 14
    }
  }
  ```

  ```json ... with more than 1000 followers theme={"system"}
  {
    "filter": {
      "twitter_follower_count": {
        "value": {
          "$gte": 1000
        }
      }
    }
  }
  ```
</CodeGroup>
