[Haskell-cafe] abs on Float/Doubles

Richard A. O'Keefe ok at cs.otago.ac.nz
Mon Apr 8 02:11:49 CEST 2013


On 8/04/2013, at 11:21 AM, Levent Erkok wrote:
> It appears that the consensus is that this is a historical definition dating back to the times when IEEE754 itself wasn't quite clear on the topic itself, and "so nobody thought that hard about negative zeroes." (The quote is from a comment from Lennart.)

I would expect abs(f) to be identical to copysign(f, 1.0).





More information about the Haskell-Cafe mailing list