Function: math.min

Returns the minimum of two numbers.

If both numbers are integers, returns an integer; otherwise, a floating-point number.

Arguments

Arguments
x An integer or floating-point number.
y An integer or floating-point number.

Raised exceptions

Exceptions
TypeError If at least one of x or y is not an integer or floating-point number.

Examples

# Return minimum of two numbers # For example, returns `-456.7`  - returnStep:  return: ${math.min(123,-456.7)}