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).