[plt-scheme] programmaticly change display of rationals

From: Scott Hickey (sshickey at qwest.net)
Date: Thu Sep 3 00:26:51 EDT 2009

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>

Posted on the users mailing list.