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  

/ (divide)

   
Examples  
int g = 50 / 5;  // Sets g 10 
int h = g / 5;   // Sets h 2 

Description   Divides the value of the second parameter by the value of the first parameter. The answer to the equation 20 / 4 is 5. The number 20 is the sum of 4 of the number 5. As an equation we see that 4 + 4 + 4 + 4 + 4 = 20.
   
Syntax  
value1 / value2
   
Parameters  
value1   int or float

value2   int or float, but not zero (it is not possible divide by zero)

   
Usage   Web & Application
   
Related   * (multiply)
% (modulo)
 
 






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








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