syntax:functions:min
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
syntax:functions:min [2015/03/20 11:35] – elenap | syntax:functions:min [2021/07/31 22:10] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Min(number, number) ====== | + | ====== Min(number1, number2) ====== |
+ | Category: | ||
- | Minimum | + | \\ |
+ | =====Description===== | ||
+ | This function returns the smallest | ||
- | ^ | + | \\ |
- | | min( 10, 20) | + | =====Arguments===== |
- | | min( 3, 7) | + | ^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 Min() functions to compare more than two values at a time. See the last two examples below. | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | min(10, 20) = 10 | ||
+ | min(171, 238) = 171 | ||
+ | min(1, -1) = -1 | ||
+ | min(min(8, | ||
+ | min(min(10, 40), min(25, 75)) = 10 //Returns the min of the 4 values 10, 40, 25, and 75. | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: |
syntax/functions/min.txt · Last modified: 2021/08/11 15:26 by craigt