MAX: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_MAX}} The '''_MAX''' function returns the greater of two given numeric values. {{PageSyntax}} : {{Parameter|maximum##}} = _MAX({{Parameter|value1}}, {{Parameter|value2}}) {{PageParameters}} * {{Parameter|value1}} and {{Parameter|value2}} are the two numbers to compare, any integer or floating point type is supported. * {{Parameter|maximum##}} is the greater of both values returned as _FLOAT type (suffix ##). {{PageDescription}} * The functio...") |
No edit summary |
||
Line 54: | Line 54: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [[_MIN]] | * [[_MIN]], [[_CLAMP]] | ||
* [[FIX]], [[INT]], [[CINT]], [[CLNG]] | * [[FIX]], [[INT]], [[CINT]], [[CLNG]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 17:09, 2 December 2024
The _MAX function returns the greater of two given numeric values.
Syntax
- maximum## = _MAX(value1, value2)
Parameters
- value1 and value2 are the two numbers to compare, any integer or floating point type is supported.
- maximum## is the greater of both values returned as _FLOAT type (suffix ##).
Description
- The function compares the given numeric values and then returns the greater of both numbers.
- Will return value1 if the values are equivalent.
Availability
Examples
PRINT _MIN(345, 123) PRINT _MIN(5.0001, 5.0) PRINT _MIN(-34, -1.0E+1) PRINT PRINT _MAX(345, 123) PRINT _MAX(5.0001, 5.0) PRINT _MAX(-34, -1.0E+1) |
123 5 -34 345 5.0001 -10 |
See also