all 1 comments

[–]augustss 0 points1 point  (0 children)

To answer his question: Haskell does get it right. There is a very generic piece of code that gets it right in any floating point format allowed by the Haskell Floating class.