Adds/Subtracts/Multiplies/Divides the two provided numbers. Note that only Chuck Norris can divide by 0.
([NUMBER] + [NUMBER]) ([NUMBER] - [NUMBER]) ([NUMBER] * [NUMBER]) ([NUMBER] / [NUMBER])
Flips the sign of the given number.
Returns the integer remainder after dividing the first number by the second.
([NUMBER] % [NUMBER])
Returns a random integer between the first and second numbers, inclusive. Provide integers for both numbers.
Returns random floating point number between the first number (inclusive) and the second number (exclusive).
Returns a random floating point number between 0 and 1, inclusive.
Adds (or subtracts) the given number to/from a number attribute.
[ATTRIBUTE] += [NUMBER]; [ATTRIBUTE] -= [NUMBER];
Returns the absolute value of the given number. (If it is negative, makes it positive.)
Returns the smaller (or larger) of the two numbers.
Math.min([NUMBER], [NUMBER]) Math.max([NUMBER], [NUMBER])
Returns the nunber as an integer, with rounding applied as follows:
Round - Rounds up if the fractional part is 0.5 or more. Otherwise, rounds down.
Floor - Always rounds down.
Ceiling - Always rounds up.
Math.round([NUMBER]) Math.floor([NUMBER]) Math.ceil([NUMBER])
Converts the given value (can be any type) to a number. In practice, this is mainly useful for text and booleans (where true = 1, false = 0).