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

From: Robert Nikander (nikander at nc.rr.com)
Date: Fri May 4 20:50:50 EDT 2007

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))

Rob



Posted on the users mailing list.