Package java.lang
Class Math

Public Method max

static float max(float a, float b)

static int max(int a, int b)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

max(float a, float b) method:

This method returns the greater value of the two float values. That is, the result is the argument closer to positive infinity.

Note

max(int a, int b) method:

Returns the greater value of two the int values. That is, the result is the argument closer to the value of Integer.MAX_VALUE. If the arguments have the same value, the result is that same value.

Example

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

The example above draws the greater value to the screen.