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.


* (multiply)

int e = 50 * 5;  // Sets 'e' to 250
int f = e * 5;   // Sets 'f' to 1250
Description Multiplies the values of the two parameters. Multiplication is equivalent to a sequence of addition. For example 5 * 4 is equivalent to 5 + 5 + 5 + 5.
value1 * value2
value1 int, float, byte, or char
value2 int, float, byte, or char
Related+ (add)
/ (divide)
Updated on May 30, 2018 06:11:42pm EDT

Creative Commons License