Denovo

Math

Arithmetic on numbers.

[number] + [number]

0 + 0

Adds two numbers.

SlotTakesWhat it is for
1numberThe first number.
2numberThe number to add.

Gives back: number

Script: a + b

[number] - [number]

0 - 0

Takes the second number away from the first.

SlotTakesWhat it is for
1numberThe number to start from.
2numberThe number to take away.

Gives back: number

Script: a - b

[number] * [number]

0 * 0

Multiplies two numbers.

SlotTakesWhat it is for
1numberThe first number.
2numberThe number to multiply by.

Gives back: number

Script: a * b

[number] / [number]

0 / 0

Divides the first number by the second. Dividing by 0 stops the script with an error.

SlotTakesWhat it is for
1numberThe number to divide.
2numberThe number to divide by.

Gives back: number

Script: a / b

[number] mod [number]

0 mod 0

The remainder left after dividing the first number by the second, so 7 mod 3 is 1. Handy for doing something every other time: a number mod 2 is 0 when it is even. Using 0 stops the script with an error.

SlotTakesWhat it is for
1numberThe number to divide.
2numberThe number to divide by.

Gives back: number

Script: a % b

On this page