math
21 blocks in 4 groups. Open a block for its pins, an example and how it behaves.
float: operators
number
- floor
numberv10.4.28Returns the largest integer less than or equal to a given number. - ceil
numberv10.4.28Always rounds a number up to the next largest whole number or integer. - smallest
numberv10.4.28Returns the smallest number of all numbers provided. - round
numberv10.4.28Returns the rounded value of the given number to specified precision (number of digits after the decimal point). - percentage
numberv10.4.28Calculates the percentage between two numbers. - abs
numberv10.4.28static method returns the absolute value of a number
number: operators
- -
numberv10.4.28Subtracts the two operands, producing their difference. - +
numberv10.4.28Produces the sum of numeric operands. - **
numberv10.6.2Returns the result of raising first operand to the power second operand. - x
numberv10.4.28Multiplication operator produces the product of the operands. - %
numberv10.4.28Returns the remainder left over when one operand is divided by a second operand. - ÷
numberv10.4.28Produces the quotient of its operands where the first operand is the dividend and the second operand is the divisor.
number: static methods
- log2
numberv10.4.28Returns the base 2 logarithm of a number - max
numberv13.0.8Return the largest of the numbers given as input parameters - log
numberv13.0.7Returns the base logarithm of a number - exp
numberv13.0.7Returns the value of E raised to the power of a number - pow
numberv10.4.28Returns the base to the exponent power - min
numberv13.0.8Return the smallest of the numbers given as input parameters - sin
numberv13.0.7Returns the sine of a number - cos
numberv13.0.7Returns the cosine of a number