Daniel Lemire personal blog

How does your programming language handle “minus zero” (-0.0)?

The ubiquitous IEEE floating-point standard defines two numbers to represent zero, the positive and the negative zeros. You also have the positive and negative infinity. If you compute the inverse of the positive zero, you get the positive infinity. If you compute the inverse of the negative zero, you get the negative…
Points
126
HN comments
207
Submissions
1
Cited by
0 commenters

Software EngineeringMath & Algorithms2021

On Hacker News

SubmittedTitle on HNPointsComments
Mar 5, 2021How does your programming language handle “minus zero” (-0.0)? by ibobev126207

More from Daniel Lemire

All 87 posts →

Related posts from the same era