summaryrefslogtreecommitdiff
path: root/src/code/1/numbers
blob: 9489e0092ce60f2c383766c74135f66d505e9e08 (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(1)> 42
42
iex(2)> -42
-42
iex(3)> 0
0
iex(4)> 1.0
1.0
iex(5)> 6.674e-11
6.674e-11
iex(6)> 0b1010
10
iex(7)> 0o755
493
iex(8)> 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