lean2/tests/lean/793a.lean.expected.out
Leonardo de Moura 5d8d226640 fix(frontends/lean/parser): add support for decimals
Decimal numbers are notation for rationals.
If rat.of_num is not available, then an error is generated.

closes #793
2015-08-11 18:44:48 -07:00

9 lines
315 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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))