1 Fixnum
2 [Fixnum, Integer, Precision, Numeric, Comparable, Object, Kernel]
3 [Precision, Comparable, Kernel]
4 127
5 127
6 127
7 127
8 1
9 256
10 242
11 127
12 32
13 122
14 12
15 2.2
16 [3, 2]
17 2.4
18 15
19 -17
20 13
21 8
22 5
23 12
24 3
25 10
25 5
1 4
2 x=0
3 x!=0
4 x=-40 x.abs=40
5 x=4.34 x.floor=4 x.ceil=5
6 12.4.round=12 12.5.round=13 12.6.round=13
7 12.next=13 -12.next=-11
8 Math.constants = ["PI", "E"]
9 Math::PI = 3.14159265358979
10 Math::E = 2.71828182845905
11 Math.exp(5) = 148.413159102577
12 Math::E**5 = 148.413159102577
13 Math.sqrt(16) = 4.0
14 Math.log(Math::E) = 1.0
15 Math.log(100) = 4.60517018598809
16 Math.log10(100) = 2.0
17 Math.log(1) = 0.0
19 25/100 = 1/4
20 1/4 + 1/4 = 1/2
21 2 3 5 7 11 13 17 19 23 29
22 97.chr = a