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

Method floor

core/src/processing/core/PApplet.java:4933–4935  ·  view source on GitHub ↗

( begin auto-generated from floor.xml ) Calculates the closest int value that is less than or equal to the value of the parameter. ( end auto-generated ) @webref math:calculation @param n number to round down @see PApplet#ceil(float) @see PApplet#round(float)

(float n)

Source from the content-addressed store, hash-verified

4931 * @see PApplet#round(float)
4932 */
4933 static public final int floor(float n) {
4934 return (int) Math.floor(n);
4935 }
4936
4937/**
4938 * ( begin auto-generated from round.xml )

Callers 2

textMethod · 0.95
FloatToS15_16Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected