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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FybawCdrW5RjTVC5xNQVy%2F0.png?alt=media)

**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="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FGtBJo4UKOJZu8jRmz50z%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FVZUalhDmmTBfc2BhDkxO%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>
