---
title: NUMBER
url: https://www.tines.com/docs/formulas/functions/number/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# NUMBER

*[View on tines.com](https://www.tines.com/docs/formulas/functions/number/)*

Converts the passed value to a number.

**Categories:** Numbers

## Syntax

```
NUMBER(value)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "100"
  }
}
```

Formula:

```
NUMBER(my_action.message)
```

Output:

```json
100
```

### Example 2: Also works with negative numbers and floats.

Input:

```json
{
  "my_action": {
    "message": "-10.1"
  }
}
```

Formula:

```
NUMBER(my_action.message)
```

Output:

```json
-10.1
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "100"
        }
      },
      "position": {
        "x": 2820,
        "y": 3540
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "NUMBER",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "number": "=NUMBER(my_action.message)"
        }
      },
      "position": {
        "x": 2820,
        "y": 3645
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
