Math and Numbers: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>Gausie Add log_n |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Flink|int|ceil|float|desc=Returns the next highest value of the specified number as an integer.}} | {{Flink|int|ceil|float|desc=Returns the next highest value of the specified number as an integer.}} | ||
{{Flink|int|floor|float|desc=Returns the next lowest value of the specified number as an integer.}} | {{Flink|int|floor|float|desc=Returns the next lowest value of the specified number as an integer.}} | ||
{{Flink| | {{Flink|boolean|is_integer|string|desc=Reports whether a string is an integer.}} | ||
{{Flink|int|min|int|int}} | {{Flink|int|min|int|int}} | ||
{{Flink|float|min|float|float|desc=Returns the lower of two numbers.}} | {{Flink|float|min|float|float|desc=Returns the lower of two numbers.}} | ||
{{Flink|int|max|int|int}} | {{Flink|int|max|int|int}} | ||
{{Flink|float|max|float|float|desc=Returns the higher of two numbers.}} | {{Flink|float|max|float|float|desc=Returns the higher of two numbers.}} | ||
{{flink|float|expression_eval|string}} | |||
{{flink|float|monster_eval|string}} | |||
{{flink|float|modifier_eval|string|desc=Evaluates a mathematical expression.}} | |||
{{Flink|int|random|int|desc=Generates a random integer between 0 and 1 less than the specified number, inclusive.}} | |||
{{Flink|int|round|float|desc=Returns the value of the specified number as rounded to the nearest integer.}} | |||
{{Flink|float|square_root|float|desc=Returns the square root of the specified value.}} | {{Flink|float|square_root|float|desc=Returns the square root of the specified value.}} | ||
{{Flink|int|truncate|float|desc=Returns the decimal-stripped value of the specified number as an integer.}} | |||
{{Flink|float|log_n|float|{{opt|float}}|desc=Returns the natural log of the first argument, or with the base of the second argument is specified}} | |||
[[Category:Scripting]] |
Latest revision as of 10:03, 20 August 2020
int ceil( float )
Returns the next highest value of the specified number as an integer.
int floor( float )
Returns the next lowest value of the specified number as an integer.
boolean is_integer( string )
Reports whether a string is an integer.
int min( int, int )
float min( float, float )
Returns the lower of two numbers.
int max( int, int )
float max( float, float )
Returns the higher of two numbers.
float expression_eval( string )
float monster_eval( string )
float modifier_eval( string )
Evaluates a mathematical expression.
int random( int )
Generates a random integer between 0 and 1 less than the specified number, inclusive.
int round( float )
Returns the value of the specified number as rounded to the nearest integer.
float square_root( float )
Returns the square root of the specified value.
Returns the decimal-stripped value of the specified number as an integer.
float log_n( float, [float] )
Returns the natural log of the first argument, or with the base of the second argument is specified