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  

floor()

   
Examples  
float x = 2.88;  
float a = floor(x);  // Set "a" to 2.0 

Description   Calculates the closest value that is less than or equal to the value of the parameter.
   
Syntax  
floor(value)
   
Parameters  
value   float

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