Skip to main content

max

Overloads​

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

max(Object a, Object b) -> Object​

Returns the greater of two values.

Parameters​

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

Returns​

The greater value.

Example​

max(3, 5)
//-> 5

max(as_real type) -> real​

Returns the maximum value of a real

Parameters​

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

max(as_integer type) -> integer​

Returns the maximum value of a integer

Parameters​

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

max(as_bool type) -> bool​

Returns the maximum value of a bool

Parameters​

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