Package java.lang
Class Math

Public Method floor

static float floor(float a)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the largest (closest to positive infinity) float value that is less than or equal to the argument and is equal to a mathematical integer.

Note

Example

   Draw.writeText("data: " + Math.floor(3.2315523f));

The example above draws a calculated value of 3 to the screen.