Get the latest tech news

It's OK to compare floating-points for equality


NB: The title of this post is an intentional clickbait. Even though I do stand for its statement, a more honest one would be something like: It's NOT OK to compare floating-points using epsilons.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Points

Points

Photo of equality

equality

Related news:

News photo

Bernie Sanders: AI Is a Threat to Everything the American People Hold Dear - It kills jobs, equality, connection, democracy and maybe the human race. Congress must act.

News photo

Meta’s Moltbook deal points to a future built around AI agents

News photo

Points on a ring: An interactive walkthrough of a popular math problem