( 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)
| 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) { |
no outgoing calls
no test coverage detected