Skip to main content

min

Overloads

NameDescription
min(as_real type) -> realReturns the minimum value of a real
min(Object a, Object b) -> ObjectReturns the lesser of two values.
min(as_integer type) -> integerReturns the minimum value of a integer
min(as_bool type) -> boolReturns the minimum value of a bool

min(as_real type) -> real

Returns the minimum value of a real

Parameters

  • type: A constant corresponding to the type whose minimum is returned.

min(Object a, Object b) -> Object

Returns the lesser of two values.

Parameters

  • a: The first value.
  • b: The second value.

Returns

The lesser value.

Example

min(3, 5)
//-> 3

min(as_integer type) -> integer

Returns the minimum value of a integer

Parameters

  • type: A constant corresponding to the type whose minimum is returned.

min(as_bool type) -> bool

Returns the minimum value of a bool

Parameters

  • type: A constant corresponding to the type whose minimum is returned.