[plt-scheme] fractions and decimals

From: Paul Schlie (schlie at attbi.com)
Date: Sun Jan 19 19:56:36 EST 2003

Some may prefer to have inexact numbers be terminated by a zero (0),
otherwise be considered exact, more similar the teaching language.

1      == 1      ; exact
1.0    == 1.0    ; inexact

0.125  == 1/8    ; exact
0.1250 == 0.1250 ; inexact

0.3... == 1/3    ; exact
0.3330 == 0.3330 ; inexact

(which seems nice, simple, and somewhat elegant; without needing #e etc.)

-paul-



Posted on the users mailing list.