Package java.lang
Class Math

Public Method min

static float min(float a, float b)

static int min(int a, int b)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

min(float a, float b) method:

This method returns the smaller value of the two float parameter values. That is, the result is the value closer to negative infinity.

Note

min(int a, int b) method:

This method returns the smaller value of the two int parameter values. That is, the result the argument closer to the value of Integer.MIN_VALUE. If the arguments have the same value, the result is that same value.

Example

   Draw.writeText("data: " + Math.min(3.2315523f, 9.23f));

The example above draws the smaller value to the screen.