modulo

modulo

modulo

Details

Kode wheel segment Math
Style Math
Modifiers  None
Primarily WHEN/DO Both
Pre-made brains that use it Unknown

Math > modulo

Description

This tile is a Math tile. It is used to find the modulus of two numbers. In other words it divides one number by another and if it is a whole number it returns 0, if not then it returns the remainder. The second number must be smaller than the first number.

Example

4 modulo 2 (2 x 2 = 4, no remainder) returns a 0

66 modulo 10 (6 x 10 = 60, 6 over) returns a 6

Example Code

 

WHEN[started to] [(][numvar:wave][modulo][5][)][=][0] DO [create][troll]

Modifiers

None

Other Uses

None

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: