Skip to content

Math ​

Numeric operations, arithmetic, random numbers, and formulas.

Math Number ​

Block ​

0
123

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 ​

11+ ▾
22× ▾

Description ​

Return the sum of the two numbers.

Params ​

  • A: Number
  • OP: Dropdown
    • ×
    • ÷
    • ^
  • B: Number

Math Modulo ​

Block ​

6410remainder of÷

Description ​

Return the remainder from dividing the two numbers.

Params ​

  • DIVIDEND: Number
  • DIVISOR: Number

Math On List ​

Block ​

sum ▾of list
min ▾of list
max ▾of list
average ▾of list

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 ​

9square root ▾
9absolute ▾

Description ​

Return the square root of a number.

Params ​

  • OP: Dropdown
    • square root
    • absolute
    • ln
    • log10
    • e^
    • 10^
  • NUM: Number

Math Trig ​

Block ​

45sin ▾
45cos ▾

Description ​

Return the sine of a degree (not radian).

Params ​

  • OP: Dropdown
    • sin
    • cos
    • tan
    • asin
    • acos
    • atan
  • NUM: Number

Math Atan2 ​

Block ​

11atan2 of X:Y:

Description ​

Return the arctangent of point (X, Y) in degrees from -180 to 180.

Params ​

  • X: Number
  • Y: Number

Math Number Property ​

Block ​

0iseven ▾

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 ​

3.1round ▾

Description ​

Round a number up or down.

Params ​

  • OP: Dropdown
    • round
    • round up
    • round down
  • NUM: Number

Math Constrain ​

Block ​

501100constrainlowhigh

Description ​

Constrain a number to be between the specified limits (inclusive).

Params ​

  • VALUE: Number
  • LOW: Number
  • HIGH: Number

Math Random Int ​

Block ​

1100random integer fromto

Description ​

Return a random integer between the two specified limits, inclusive.

Params ​

  • FROM: Number
  • TO: Number

Math Random Float ​

Block ​

random fraction

Description ​

Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive).