Table of Contents

Math

Number

This block allows you to define a positive or negative number and use it as part of another block. This number can either be an integer, e.g. -58, or a float, e.g., 1.58.


Operation

With this block you can make basic mathematical operations on two numbers.

Options:


Random integer

This block returns an integer between or equal to the two specified numbers, which is generated randomly at each call.


Random fraction

This block returns a random floating point number larger or equal to 0.0 and strictly smaller than 1.0.


Increase variable

This block, adds a number to a selected variable. When choosing a negative number, the number is substracted.


Constrain value

This block restricts a value to a specified range. The result will be identical if the value is between the two limits. In case the value is smaller than the minimum (resp larger then the maximum), the result will be set to the minimum (resp maximum).

Map value


Mathematical functions

This block allows you to apply classical mathematical functions to numbers.

Options:


Trigonometric functions

This block allows you to apply classical trigonometric functions to numbers.

Options:


Mathematical constants

This block provides you with mathematical constants.

Options:


Number checks

With this block you can do typical number checks. The result will be true or false.

Options:


Rounding a number

This block allows you to round a floating point number to an integer.

Options:


Remainder

This block returns the remainder after division of one number by another.

E.g. remainder of 11 % 2 will return 1, or remainder of 19 % 10 will return 9