[Haskell-cafe] Re: Why 'round' does not just round numbers ?
lennart at augustsson.net
Mon Oct 27 09:28:22 EDT 2008
But you shouldn't use the "common round function", you should use the
Haskell round function.
That's the one that is mathematically better and has hardware support.
On Mon, Oct 27, 2008 at 2:05 PM, L.Guo <leaveye.guo at gmail.com> wrote:
> Thank you all for instructions.
> I am not the same education route with you, so i just heard round-to-even for the very first time.
> Now I understand why it exists in theory.
> And then, in haskell, is that means, I have to use 'floor . (.5+)' instead of 'round' to get the common round function ?
> Or else, is there any other alter-round-function in haskell to do this ?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe