
8 Sep
2006
8 Sep
'06
10:27 p.m.
On 9/8/06, Sara Kenedy
I try to find some functions in Haskell library to deal with numeric such that the result in the following format (but I did not find) For example,
1/3 0.33
You're talking about a number-to-string conversion, right? You probably want showFFloat, from the Numeric module. There's also the Text.Printf module. Or you could write your own display code; but it's tricky to get it right for every possible case. http://haskell.org/ghc/docs/latest/html/libraries/base/Numeric.html#v%3Ashow... Hope this helps! --Tom Phoenix