User Tools

Site Tools


syntax:functions:min

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:min [2014/09/16 21:38] dmitrysyntax:functions:min [2021/08/11 15:26] (current) – [Examples] craigt
Line 1: Line 1:
-====== Min(numbernumber) ======+====== Min(number1number2) ====== 
 +Category:  Number function
  
-Minimum of two numbers.+\\  
 +=====Description===== 
 +This function returns the smallest of two numbers.
  
- Example   Result  +\\  
-min( 10, 20)   10 |+=====Arguments===== 
 +^Argument^Type^Description
 +|number1|Number|The value to be compared to //number2//.| 
 +|number2|Number|The value to be compared to //number1//.| 
 +\\  
 +**Return value type:**  Number
  
 +\\ 
 +=====Remarks=====
 +Use nested Min() functions to compare more than two values at a time.  See the last two examples below.
 +
 +\\ 
 +=====Examples=====
 +
 +  min(10, 20) //Returns 10
 +
 +  min(171, 238) //Returns 171
 +
 +  min(1, -1) //Returns -1
 +
 +  min(min(8,4),12) //Returns 4  (Returns the min of the 3 values 8, 4, and 12.)
 +
 +  min(min(10, 40), min(25, 75)) //Returns 10  (Returns the min of the 4 values 10, 40, 25, and 75.)
 +
 +\\ 
 +===== See also =====
 +  * [[syntax:functions:max|Max(number1, number2)]]
syntax/functions/min.txt · Last modified: 2021/08/11 15:26 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki