[plt-scheme] fractions and decimals
Paul Schlie writes:
> A) zero(0) and repeat(_) terminated decimal fractions being exact,
> inexact otherwise:
>
> 1 == 1 ; exact
> 1. == 1. ; inexact
> 1.0 == 1 ; exact
> 1.1 == 1.1 ; inexact
> 1.10 == 11/10 ; exact
> 1.1_ == 10/9 ; exact
>
> ... Option A does seem arguably more reasonable, ...
It still seems unnecessarily tricky, though. Is there some reason
for not using a standard literal such as
#e0.125
when you want to express an exact number in decimals?
--
John David Stone - Lecturer in Computer Science and Philosophy
Manager of the Mathematics Local-Area Network
Grinnell College - Grinnell, Iowa 50112 - USA
stone at cs.grinnell.edu - http://www.cs.grinnell.edu/~stone/