Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
andi999
3y ago
0 comments
Share
so x+0 is 0?
0 comments
default
newest
oldest
ncmncm
3y ago
No. -0.0 + 0 is not necessarily bitwise-equal to 0.0. Though it arguably could be, depending on details.
Sesse__
3y ago
-0.0 + x = x, even if x should be -0.0 or +0.0.
+0.0 + x, on the other hand, is not always equal to x.
titzer
3y ago
Note that IEEE 754 defines exactly which zero you get in every combination of operands. -0 + 0 is actually 0.
j
/
k
navigate · click thread line to collapse