> For the complete documentation index, see [llms.txt](https://documentation.astera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.astera.com/astera-data-stack-v10/functions/math/max-real.md).

# Max (Real)

| **Name**    | ***Max (Real)***                                                                         |
| ----------- | ---------------------------------------------------------------------------------------- |
| Syntax      | Max (Real first, Real second)                                                            |
| Purpose     | To return the greater of two real values.                                                |
| Description | Returns the maximum of two real values.                                                  |
| Return Type | Real                                                                                     |
| Parameters  | <p>first \[System.Double] – First value</p><p>second \[System.Double] – Second value</p> |

![](/files/1P3GdxyzOPDhfeSRWQMp)

**Example**

In this example, we are passing real values to the function transformation object using a *Variables* object.

Where,

*first* = -1234

*second* = 4.321

<figure><img src="/files/qyAy23hT8Seke8z9Q1iw" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the greater real value has been returned.

<figure><img src="/files/TIgCJUNlc4cXMoM5si2a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-v10/functions/math/max-real.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.
