MCPcopy Index your code
hub / github.com/processing/processing / round

Method round

core/src/processing/core/PApplet.java:4949–4951  ·  view source on GitHub ↗

( begin auto-generated from round.xml ) Calculates the integer closest to the value parameter. For example, round(9.2) returns the value 9. ( end auto-generated ) @webref math:calculation @param n number to round @see PApplet#floor(float) @see PApplet#ceil(float)

(float n)

Source from the content-addressed store, hash-verified

4947 * @see PApplet#ceil(float)
4948 */
4949 static public final int round(float n) {
4950 return Math.round(n);
4951 }
4952
4953
4954 static public final float mag(float a, float b) {

Callers 3

lerpColorMethod · 0.95
saveTargetAsyncMethod · 0.95
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected