Math โ
Numeric operations, arithmetic, random numbers, and formulas.
Math Number โ
Block โ
Description โ
A number.
Params โ
- NUM: Number
Math Constant โ
Block โ
Description โ
Return one of the common constants: ฯ (3.141โฆ), e (2.718โฆ), ฯ (1.618โฆ), sqrt(2) (1.414โฆ), sqrt(ยฝ) (0.707โฆ), or โ (infinity).
Params โ
- CONSTANT: Dropdown
- ฯ
- e
- ฯ
- sqrt(2)
- sqrt(ยฝ)
- โ
Math Arithmetic โ
Block โ
Description โ
Return the sum of the two numbers.
Params โ
- A: Number
- OP: Dropdown
- ร
- รท
- ^
- B: Number
Math Modulo โ
Block โ
Description โ
Return the remainder from dividing the two numbers.
Params โ
- DIVIDEND: Number
- DIVISOR: Number
Math On List โ
Block โ
Description โ
Return the sum of all the numbers in the list.
Params โ
- OP: Dropdown
- sum
- min
- max
- average
- median
- modes
- standard deviation
- random item
- LIST: Array
Math Single โ
Block โ
Description โ
Return the square root of a number.
Params โ
- OP: Dropdown
- square root
- absolute
- ln
- log10
- e^
- 10^
- NUM: Number
Math Trig โ
Block โ
Description โ
Return the sine of a degree (not radian).
Params โ
- OP: Dropdown
- sin
- cos
- tan
- asin
- acos
- atan
- NUM: Number
Math Atan2 โ
Block โ
Description โ
Return the arctangent of point (X, Y) in degrees from -180 to 180.
Params โ
- X: Number
- Y: Number
Math Number Property โ
Block โ
Description โ
Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false.
Params โ
- NUMBER_TO_CHECK: Number
- PROPERTY: Dropdown
- even
- odd
- prime
- whole
- positive
- negative
- divisible by
Math Round โ
Block โ
Description โ
Round a number up or down.
Params โ
- OP: Dropdown
- round
- round up
- round down
- NUM: Number
Math Constrain โ
Block โ
Description โ
Constrain a number to be between the specified limits (inclusive).
Params โ
- VALUE: Number
- LOW: Number
- HIGH: Number
Math Random Int โ
Block โ
Description โ
Return a random integer between the two specified limits, inclusive.
Params โ
- FROM: Number
- TO: Number
Math Random Float โ
Block โ
Description โ
Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive).