# ToReal (Any value)

| **Name**    | ***ToReal***                                                                                                            |
| ----------- | ----------------------------------------------------------------------------------------------------------------------- |
| Syntax      | ToReal (Any value)                                                                                                      |
| Purpose     | To convert a value into a real number.                                                                                  |
| Description | Returns a real number representing the specified value. Returns null if the value cannot be converted to a real number. |
| Return Type | Real                                                                                                                    |
| Parameters  | value \[System.Object] – Value to be converted                                                                          |

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20(21).png" alt=""><figcaption></figcaption></figure>

**Example**

In this example, we will pass a string value to the function transformation object using a *Variables* object.

Where,

*value* = $ 123.1234

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20(22).png" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the provided string has been converted into a real number.

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20(22).png" alt=""><figcaption></figcaption></figure>

This conversion is also evident if the output value is mapped to a destination file, as shown below:

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/3%20\(14\).png)
