# Val

This Function returns a *\<numeric>*, which is the specified **Value** converted to numeric.

Function available for the following operating systems:

![](https://3821468174-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTlA1suFa5N48x_83N%2F-MAlPVpH3WRwBy16c7JY%2F-MAlQBZuuTnc6hyzKSVQ%2Fimage.png?alt=media\&token=5c9534b7-ca05-4ac4-b408-2207cd5a5295)

### Parameters

* **Value** *\<string> -* String value to be converted to numeric.

### **Examples**

|                                                                                         |                                                                                       |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| <p><em>Example 1</em></p><p></p><p>Val("123")<br><strong>Result</strong> = 123</p>      | <p><em>Example 2</em></p><p></p><p>Val("1.23")<br><strong>Result</strong> = 1.23</p>  |
| <p><em>Example 3</em></p><p></p><p>Val("Kalipso")<br><strong>Result</strong> = 0</p>    | <p><em>Example 4</em></p><p></p><p>Val("1minus3")<br><strong>Result</strong> = 1</p>  |
| <p><em>Example 5</em></p><p></p><p>Val("1D3")<br><strong>Result</strong> = 1000</p>     | <p><em>Example 6</em></p><p></p><p>Val("1d2")<br><strong>Result</strong> = 100</p>    |
| <p><em>Example 7</em></p><p></p><p>Val("1D-3")<br><strong>Result</strong> = 0.001</p>   | <p><em>Example 8</em> </p><p></p><p>Val("1d-2")<br><strong>Result</strong> = 0.01</p> |
| <p><em>Example 9</em> </p><p></p><p>Val("1E3")<br><strong>Result</strong> = 1000</p>    | <p><em>Example 10</em> <br><br>Val("1e2")<br><strong>Result</strong> = 100</p>        |
| <p><em>Example 11</em><br><br>Val("1E-3")<br><strong>Result</strong> = 0.001</p>        | <p><em>Example 12</em> <br><br>Val("1e-2")<br><strong>Result</strong> = 0.01</p>      |
| <p><em>Example 13</em><br><br>Val("1" + "2" + "3")<br><strong>Result</strong> = 123</p> |                                                                                       |

{% hint style="info" %}
The specified **Value** can contain an optional plus or minus sign.
{% endhint %}

{% hint style="info" %}
The specified **Value** can contain an optional decimal-point character.
{% endhint %}

{% hint style="info" %}
The specified **Value** can contain an optional exponent part, which itself consists on an "e" or "E" character followed by an optional sign and a sequence of digits.
{% endhint %}
