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 | first [System.Double] – First value second [System.Double] – Second value |
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FybawCdrW5RjTVC5xNQVy%252F0.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7049fc8c&sv=1)
Example
In this example, we are passing real values to the function transformation object using a Variables object.
Where,
first = -1234
second = 4.321
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FGtBJo4UKOJZu8jRmz50z%252F1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=2e991955&sv=1)
In the output window, you can see that the greater real value has been returned.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FVZUalhDmmTBfc2BhDkxO%252F2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a1965283&sv=1)
Last updated