lean2/tests/lean/793a.lean
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

15 lines
136 B
Text

import data.rat
check 4.0
check 2.3
check 1.00
check 10.213
open rat
check -0.3
check 10.213
check 2.3
check 1.0
eval (λ v, 1.0) 2