[racket] Formatted output of floating-point numbers?

From: Jos Koot (jos.koot at telefonica.net)
Date: Sat Jan 14 09:33:56 EST 2012

Correct, although you may want (define myf10-5-fmt (fmt "F10.5")) and use
myf10-5-fmt such as to avoid repeated parsing of the string "F10.5". I have
also thought of parsing the format strings during compile time, but that
would force me to simplify fmt to a syntax considerably more constrained
than the current procedure.
Thanks for your attention, Jos 

-----Original Message-----
From: dmitry.pavlov at gmail.com [mailto:dmitry.pavlov at gmail.com] On Behalf Of
Dmitry Pavlov
Sent: sábado, 14 de enero de 2012 8:24
To: Jos Koot; ryan at cs.utah.edu
Cc: users at racket-lang.org
Subject: Re: [racket] Formatted output of floating-point numbers?

Jos, Ryan,

Thanks for your suggestions. They both work --
for planet-fmt the code is ((fmt "F10.5") 12.345678).

I think I will take srfi/48, as it does not require
connecting to PLaneT.

Best regards,


Posted on the users mailing list.