syntax:functions:max
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:max [2019/10/16 15:05] – dmitry | syntax:functions:max [2021/08/11 15:25] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Max(number, number) ===== | + | ====== Max(number1, number2) ====== |
+ | Category: | ||
- | The maximum | + | \\ |
+ | =====Description===== | ||
+ | This function returns the largest | ||
- | ^ | + | \\ |
- | | max( 10, 20) | + | =====Arguments===== |
- | | max( 171, 238) | + | ^Argument^Type^Description^ |
+ | |number1|Number|The value to be compared to // | ||
+ | |number2|Number|The value to be compared to // | ||
+ | \\ | ||
+ | **Return value type: | ||
- | === See also === | + | \\ |
- | * [[syntax: | + | =====Remarks===== |
+ | Use nested Max() functions to compare more than two values at a time. See the last two examples below. | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | max(10, 20) //Returns 20 | ||
+ | |||
+ | max(171, 238) //Returns 238 | ||
+ | |||
+ | max(1, -1) //Returns 1 | ||
+ | |||
+ | max(max(8, | ||
+ | |||
+ | max(max(10, 40), max(25, 75)) //Returns 75 (Returns the max of the 4 values 10, 40, 25, and 75.) | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: |
syntax/functions/max.1571252737.txt.gz · Last modified: 2019/10/16 15:05 by dmitry