[plt-scheme] printf "%.2f" equivalent?

From: Geoffrey S. Knauth (geoff at knauth.org)
Date: Fri May 4 21:52:52 EDT 2007

On May 4, 2007, at 20:50, Robert Nikander wrote:
> Robert Nikander wrote:
>> How do you format floating point numbers, and limit the precision?
>
> Aha, I just found SRFI-48.
>
> (require (lib "48.ss" "srfi"))
> (format "~10,2F" (sqrt 2))

See also:
http://list.cs.brown.edu/pipermail/plt-scheme/2006-December/015621.html
http://list.cs.brown.edu/pipermail/plt-scheme/2006-December/015624.html



Posted on the users mailing list.