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: [email protected] [mailto:[email protected]] On Behalf Of
Dmitry Pavlov
Sent: sábado, 14 de enero de 2012 8:24
To: Jos Koot; [email protected]
Cc: [email protected]
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,

Dmitry


____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to