Skip to main content

Numeric expressions

Literal​

Creates a new numeric value. Leading zeros are valid.

1

0.5
.5

-2

01

-0002

Addition​

2 + 3
// 5

Subtraction​

5 - 3
// 2

Multiplication​

5 * 3
// 15

Division​

6 / 2
// 3

Exponentiation​

2 ** 3
// 8