[racket] Formatting reals

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Mar 12 23:58:43 EDT 2013

On Wed, Mar 13, 2013 at 4:29 AM, Stephen Chang <stchang at ccs.neu.edu> wrote:
> Does real->decimal-string do what you want?

yes, except for the width.  It can substitute the ~r in

 (~a (~r (- pi) #:precision 6) #:width 12 #:align 'right)

but not the ~a.

Srfi/48 still wins in convenience and readability.  8^)

Cheers
P.

Posted on the users mailing list.