Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

min()

   
Examples  
int d = min(5, 9);            // Sets "d" to 5 
int e = min(-4, -12);         // Sets "e" to -12 
float f = min(12.3, 230.24);  // Sets "f" to 12.3 

Description   Determines the smallest value in a sequence of numbers.
   
Syntax  
min(value1, value2)
min(value1, value2, value 3)
   
Parameters  
value1   int or float

value2   int or float

value3   int or float

   
Returns   int or float (depending on the inputs)
   
Usage   Web & Application
   
Related   max()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas