summaryrefslogtreecommitdiff
path: root/src/code/1/numbers
blob: d13d948663b53411db41c5817bf011e74e9d1129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
iex> 42
42
iex> -42
-42
iex> 0
0
iex> 1.0
1.0
iex> 6.674e-11
6.674e-11
iex> 0b1010
10
iex> 0o755
493
iex> 0xFF
255

iex> 0 + 1
1
iex> 6 * 7
42
iex> 2 - 4
-2
iex> 1/3
0.3333333333333333
iex> div(1, 3)
0
iex> rem(1, 3)
1