[racket] Formatted output of floating-point numbers?

From: Jos Koot (jos.koot at telefonica.net)
Date: Fri Jan 13 03:43:47 EST 2012

You may want a look into
http://planet.racket-lang.org/display.ss?package=planet-fmt.plt&owner=joskoo
t
Documentation as a doc file I'm afraid.
Jos 

-----Original Message-----
From: users-bounces at racket-lang.org [mailto:users-bounces at racket-lang.org]
On Behalf Of Dmitry Pavlov
Sent: jueves, 12 de enero de 2012 11:53
To: users at racket-lang.org
Subject: [racket] Formatted output of floating-point numbers?

Hello all,

I have been looking for a way to do in Racket
something you can easily do in C:

printf("%10.5lf\n", 12.345678);

so it properly cuts the fractional part to 5 digits
and adds padding to get 10 characters in total,
producing "  12.34568" as a result.


Best regards,

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



Posted on the users mailing list.