> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/formula-syntax/math-functions/numbervalue.md).

# NUMBERVALUE

Converts text representations of numbers into numeric values while handling different decimal and thousands separators.

The NUMBERVALUE function converts text into a numeric value by correctly interpreting decimal and thousands separators, such as commas and periods. It is useful when working with numbers stored as text, especially when data formats vary across regions or sources.

### Syntax

```javascript
NUMBERVALUE(text, decimal_separator, group_separator)
```

### Arguments

text - The text to be converted to number (Required).

decimal\_separator - The character used to differentiate between the integer and the fractional part of a number (Optional).

group\_separator - The character used as a thousand separator (Optional).

### Example

```javascript
NUMBERVALUE("2.456,78", ",", ".")
```

In this example, the Interest column is a data input field with text data. We've used the NUMBERVALUE function to convert the Interest text field to a numeric field that aligns with the other measures in the report.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fxtrwywo0YA8udGy8QCIT%2Fimage.png?alt=media&amp;token=81a6ec57-c627-44f8-afa3-c0637d70e5fe" alt="How to use the NUMBERVALUE function to convert the Interest text field to a number"><figcaption><p>Using the NUMBERVALUE function to convert the Interest text field to a number</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inforiver.com/formula-syntax/math-functions/numbervalue.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
