# Convert Text to Number

## Overview

This operation takes a text representing a number and converts it into a numeric value. It also recognizes and converts certain characters that resemble numbers, ensuring accurate interpretation of numeric values, including those written in European notation or with unconventional characters. See the [notes](#notes) for details.

## Syntax

```
the text is "{input}"
get the text as a number
```

## Data

The table below lists the names of the data elements in this operation and indicates which can be renamed in the syntax.

| Data Name | Can Be Renamed |
| --------- | -------------- |
| the text  | Yes            |

## Parameters

**Parameters** are placeholders for data. Refer to the table below for details on each parameter in this operation. In the syntax, replace parameters with your own values.

<table><thead><tr><th width="119.84375">Parameter</th><th width="295.01171875">Description</th><th width="150.6640625">Examples</th><th>Required</th></tr></thead><tbody><tr><td><code>input</code></td><td>The text that represents a number which needs to be converted.</td><td><ul><li>"100"</li><li>"3.14"</li></ul></td><td>Yes</td></tr></tbody></table>

## Examples

### 1. Converting a Whitespace-Affected Number Text

{% tabs %}
{% tab title="Automation" %}

```
the value is "  98  "
get the value as a number
```

{% endtab %}

{% tab title="Results" %}

```
98
```

{% endtab %}
{% endtabs %}

### 2. Converting a Decimal String to a Number

{% tabs %}
{% tab title="Automation" %}

```
the decimal is "3.14"
get the decimal as a number
```

{% endtab %}

{% tab title="Results" %}

```
3.14
```

{% endtab %}
{% endtabs %}

## Notes

#### Additional Character-to-Number Mappings

This table defines additional character-to-number mappings, extending the standard set of conversions. It includes common characters and symbols that are translated to their corresponding numeric values.

| Characters | Numeric Equivalent |
| ---------- | ------------------ |
| O, o       | 0                  |
| !, I, i    | 1                  |
| E          | 3                  |
| S, s, $    | 5                  |
| T, t       | 7                  |
| B          | 8                  |
| €          | 6                  |

#### European Decimal Notation

This operation properly parses decimal numbers in European notation, where commas are used as decimal separators. It automatically converts numbers like "12.345,67" into the format "12345.67" for processing.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/text/conversions/convert-text-to-number.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
