Michael Marte wrote:
> I have a simple problem but it seems to be quite involved: I want to print
> floating point numbers with a given number of decimal points.
>
> First, I found out that both ghc and hugs do not consider the precision
> argument to showPrec.
What precision argument? There's a precedence argument, but the precision
is news to me...
But you're right, Haskell desperately needs some Library function for
formatting Float numbers. I thought all implementations had it by now.
I mean, it's the first thing you need when you start using FP numbers.
--
-- Lennart
- Questions about printing and rounding Float numb... Michael Marte
- Re: Questions about printing and rounding F... Marcin 'Qrczak' Kowalczyk
- Re: Questions about printing and rounding F... Lennart Augustsson
- Re: Questions about printing and rounding F... Michael Marte
- Re: Questions about printing and roundi... Jan Skibinski
- Re: Questions about printing and rounding F... Lennart Augustsson
- Re: Questions about printing and rounding F... Peter Hancock
- Re: Questions about printing and roundi... Lennart Augustsson
- RE: Questions about printing and rounding F... Sigbjorn Finne
