random([max])
Return a random value
Parameter
Description
Max (optional)
The max value of the random value, default to 65536.
Returns a random value between 0 and the given max.
If the max parameter is 0, the random value is between -2^31 and +2^31.
min(value1, value2)
Return the smaller of value1 and value2.
Parameter
Description
value1, value2
The two values to compare
max(value1, value2)
Return the larger of value1 and value2.
Parameter
Description
value1, value2
The two values to compare
clamp(value, min, max)
Return the value, but no smaller than min, and no larger than max.
Parameter
Description
value
The value to clamp.
min
The smallest value to return.
max
The largest value to return.
float2cell(Float:value)
Return the Float value as a cell, using binary conversion (not converting it
through its value, but just copying the bits).
This is useful in communication functions when parsing binary buffers
containing float values.
Parameter
Description
value
The float value to return as a cell
Float:cell2float(value)
Return the cell value as a Float, using binary conversion (not converting it
through its value, but just copying the bits).
This is useful in communication functions when parsing binary buffers
containing float values.
Parameter
Description
value
The cell value to return as a Float.
Page 100 of 121