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

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Dec 10 04:03:27 EST 2006

Kyle Smith skrev:
> 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)]

Thanks.

The absolute last thing I did was the renaming. And obviously
I didn't have test cases to check for the one argument case.

Next time I'll hit "Check Syntax", right click at the
identifier to rename, and choose "Rename <identifier>".

-- 
Jens Axel Søgaard





Posted on the users mailing list.