- Reference
- Script reference
- Math and control
MIN
Macro that will return the smaller of two values
Description#
MIN( value1, value2 )Returns the smaller of two values
Works with both float and integer parameters.
Parameters#
value1 | input value |
value2 | input value |
Return value#
Returns the smaller of value1 and value2.
Example usage#
new Float:n;
n = MAX(12.4, -3.14); // -3.14Last updated Nov 19, 2019