FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

max()

   
Examples  
int a = max(5, 9);            // Sets "a" to 9 
int b = max(-4, -12);         // Sets "b" to -4 
float c = max(12.3, 230.24);  // Sets "c" to 230.24 

Description   Determines the largest value in a sequence of numbers.
   
Syntax  
max(value1, value2)
max(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   min()
 
 






   
 
Updated: Fri Jul 15 16:35:45 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info