×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2277 | Released: 23 Apr 2014, 1:58am | What's New | Download Now

math.min()

Description:

Return the minimum value among its arguments.

Syntax:

math.min (x [, ...])

Example:

print (math.min(1.2, -7, 3))        ---> -7
print (math.min(0, 1e-9))           ---> 0
print (math.min(0, 1/0, math.huge)) ---> 0

Parameters:

x [, ...]
A number or list of numbers.

Returns:

A number.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0