27 funkcji w tej kategorii.
math.abs
math.ceil
math.floor
math.max
math.min
math.pow
math.round
math.sqrt
Add
Add two numbers
Subtract
Subtract B from A
Multiply
Multiply two numbers
Divide
Divides A by B.
Modulo
Gives the remainder of A divided by B, with the sign of A.
Power
Raises Base to the power of Exponent.
Square Root
Gives the square root of a number.
Absolute
Absolute value
Round
Rounds to the nearest whole number.
Floor
Round down to integer
Ceiling
Round up to integer
Truncate
Remove decimal part (round toward zero)
Minimum
Smaller of two values
Maximum
Larger of two values
Clamp
Limit value between min and max
Lerp
Blends from A to B by T: 0 gives A, 1 gives B, 0.5 gives the midpoint.
Random
Gives a random decimal from Min up to (not including) Max.
Float to Boolean
Convert number to boolean (0=false, non-zero=true)
Float to String
Convert number to string