Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by dragontamer

3 years ago

You'd think so, except no. Floating point operations are innately lossy and even non-associative, and non communative.

A+B+C does not equal B+C+A in floating point.

1 comment

dragontamer

Reply

JoeAltmaier  3 years ago

Which should happen in entirely predictable and orderly fashion. In fact, they should be testing for that too.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities