Oops!
Here is a fixed version of "format.scm" (found 2 bugs as noted below) as well
as some simple test code.
I'd like you'all to try this out for a bit before updating the SRFI page yet
again. Please feel free to send me test cases.
Thanks for the help!
-KenD
================================
In mzscheme,
Welcome to MzScheme version 299.100, Copyright (c) 2004-2005 PLT Scheme,
Inc.
>
> (format "~10,0F" -3e-4)
" -0."
> (format "~10,1F" -3e-4)
" -0.0"
> (format "~10,2F" -3e-4)
" -0.0." ---> error?
> (format "~10,3F" -3e-4)
" -0.0.0" ---> error?
> (format "~10,4F" -3e-4)
" -0.0003"
> 3e-5
3e-005
> (format "~10,4F" 3e-5)
> +: expects type <number> as 1st argument, given: #f; other arguments
were: 1