Math and Numbers

From KoLMafia
Jump to: navigation, search

intceil( float )

Returns the next highest value of the specified number as an integer.

intfloor( float )

Returns the next lowest value of the specified number as an integer.

booleanis_integer( string )

Reports whether a string is an integer.

intmin( int, int )

floatmin( float, float )

Returns the lower of two numbers.

intmax( int, int )

floatmax( float, float )

Returns the higher of two numbers.

floatexpression_eval( string )

floatmonster_eval( string )

floatmodifier_eval( string )

Evaluates a mathematical expression.

intrandom( int )

Generates a random integer between 0 and 1 less than the specified number, inclusive.

intround( float )

Returns the value of the specified number as rounded to the nearest integer.

floatsquare_root( float )

Returns the square root of the specified value.

inttruncate( float )

Returns the decimal-stripped value of the specified number as an integer.