5d8d226640
Decimal numbers are notation for rationals. If rat.of_num is not available, then an error is generated. closes #793
9 lines
315 B
Text
9 lines
315 B
Text
rat.of_num 4 : ℚ
|
||
rat.divide (rat.of_num 23) (rat.of_num 10) : ℚ
|
||
rat.of_num 1 : ℚ
|
||
rat.divide (rat.of_num 10213) (rat.of_num 1000) : ℚ
|
||
-(3 / 10) : ℚ
|
||
10213 / 1000 : ℚ
|
||
23 / 10 : ℚ
|
||
1 : ℚ
|
||
quot.mk (prerat.mk (int.of_nat (nat.succ nat.zero)) (int.of_nat (nat.succ nat.zero)) (int.of_nat_succ_pos nat.zero))
|