This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Name | ## / (divide) |
||||
---|---|---|---|---|---|

Examples | int g = 50 / 5; // Assigns 10 to 'g' int h = g / 5; // Assigns 2 to 'h' | ||||

Description | Divides the value of the first parameter by the value of the second parameter. The answer to the equation 20 / 4 is 5. The number 20 is the sum of four occurences of the number 5. As an equation we see that 5 + 5 + 5 + 5 = 20. | ||||

Syntax | value1 / value2 | ||||

Parameters |
| ||||

Related | * (multiply) % (modulo) |

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.