# Val

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/numeric-functions/val
>
> Val converts a string to a numeric value, accepting an optional sign, decimal point and exponent part (E or D), and returns 0 for text.

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

Function available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

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

### **Examples**

|                                                                                         |                                                                                 |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| <p><em>Example 1</em></p><p>Val("123")<br><strong>Result</strong> = 123</p>             | <p><em>Example 2</em></p><p>Val("1.23")<br><strong>Result</strong> = 1.23</p>   |
| <p><em>Example 3</em></p><p>Val("Kalipso")<br><strong>Result</strong> = 0</p>           | <p><em>Example 4</em></p><p>Val("1minus3")<br><strong>Result</strong> = 1</p>   |
| <p><em>Example 5</em></p><p>Val("1D3")<br><strong>Result</strong> = 1000</p>            | <p><em>Example 6</em></p><p>Val("1d2")<br><strong>Result</strong> = 100</p>     |
| <p><em>Example 7</em></p><p>Val("1D-3")<br><strong>Result</strong> = 0.001</p>          | <p><em>Example 8</em></p><p>Val("1d-2")<br><strong>Result</strong> = 0.01</p>   |
| <p><em>Example 9</em></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> |                                                                                 |

:::info
The specified **Value** can contain an optional plus or minus sign.
:::

:::info
The specified **Value** can contain an optional decimal-point character.
:::

:::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.
:::
