Integer routines
List of Global Functions
Clamp - Clamps the integer i.
IsPowerOfTwo - Checks whether i is a power of two. That is 1, 2, 4, 8, ... .
Max - Returns the highest integer in values.
Min - Returns the smallest integer in values.
Range - Generate a list<integer> with the integers from 0 to stop - 1.
RangeFrom - Generate a list<integer> with the integers from start to stop - 1.
Sum - Calculates the sum of values.
List of Global Variables
Clamps the integer i.
Function parameters
integer i
integer min
integer max
Return value
integer
Checks whether i is a power of two. That is 1, 2, 4, 8, ... .
Function parameters
integer i
Return value
boolean
Returns the highest integer in values.
Function parameters
list<integer> values
Return value
integer
Returns the smallest integer in values.
Function parameters
list<integer> values
Return value
integer
Generate a list<integer> with the integers from 0 to stop - 1.
Function parameters
integer stop
Return value
list<integer>
Generate a list<integer> with the integers from start to stop - 1.
Function parameters
integer start
integer stop
Return value
list<integer>