[plt-scheme] Re: best way to printf "%.2f" ?

From: Kyle Smith (airfoil at bellsouth.net)
Date: Sat Dec 9 20:16:39 EST 2006

Jens Axel Søgaard <jensaxel at ...> writes:
 
> (define real->scientific-string
>    (case-lambda
>      [(x)
>       (real->scientific x 2)]

Jens,

As usual you've got a pretty spiffy piece of code to take care of an otherwise 
troublesome task.  I just thought I'd point out a typo so no body gets 
confused.  Unless I way off base I believe you meant the above to read:

 (define real->scientific-string
    (case-lambda
      [(x)
       (real->scientific-string x 2)]

Cheers!

--kyle




Posted on the users mailing list.