# 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)


---

# 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://documentation.astera.com/astera-data-stack-v7/functions/conversion/toreal-any-value.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.
