Calculates the integer closest to the n parameter. For example, round(133.8) returns the value 134. @webref math:calculation @webBrief Calculates the integer closest to the value parameter @param n number to round @see PApplet#floor(float) @see PApplet#ceil(float)
(float n)
| 4519 | * @see PApplet#ceil(float) |
| 4520 | */ |
| 4521 | static public final int round(float n) { |
| 4522 | return Math.round(n); |
| 4523 | } |
| 4524 | |
| 4525 | |
| 4526 | static public final float mag(float a, float b) { |
no outgoing calls
no test coverage detected