[plt-scheme] programmaticly change display of rationals
In DrScheme, right clicking on a rational gives three options:
* view decimal expansion
* view as mixed fraction
* view as improper fraction
I know the function (read-decimal-as-inexact #f) will let me type rationals such as 1.1. Is there function like that for displaying them as well.
I'd like (* 1.1 0.1) to display as 0.11 instead of 11/100 by default.
Scott Hickey
Senior Consultant
Object Partners, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090902/eaaac24a/attachment.html>