Has anyone already developed a library of Haskell functions for
formatted output? I'm interested in something like
formatFloat :: (Int,Int) -> Float -> String
formatFloat (w,d) x
where w is the width of the field and d is the number of digits to use
after the decimal point, i.e., formatFloat is like C's %w.df specifier.
Thus
formatFloat (10,4) 3.1415926535
would evaluate to " 3.1416".
Thanks.
David M. Goblirsch, The MITRE Corporation, McLean VA 22102
[EMAIL PROTECTED]
(703) 883-5450
