> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/numeric-expressions/asnum.md).

# AsNum

Treats the databox value as a number so that arithmetic can be done on it.

| Expression             | Databox value | Result  | Notes                                                            |
| ---------------------- | ------------- | ------- | ---------------------------------------------------------------- |
| `AsNum + 3`            | `12.34`       | `15.34` | Adds 3 to the value as a number                                  |
| `AsNum + 5 Result * 6` | `1`           | `36`    | `Result` forces the addition to happen before the multiplication |

Without `Result`, the second example would follow the usual precedence and evaluate as `1 + (5 * 6)`, giving 31. There are no brackets to reach for in that position, so [Result](/reference/expression-reference/numeric-expressions/result.md) is how you force the order.

See also [Number](/reference/expression-reference/numeric-expressions/number.md), which fails rather than continue when the value is not numeric.
