Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
MaulingMonkey
· 3y ago · 0 comments
If x is another NaN with a different payload, the result is likely a NaN with a payload corresponding to the left side of the addition.
Comments
[–]
raphlinus
3y ago
That is correct, here is a playground link which shows that result:
https://play.rust-lang.org/?version=stable&mode=debug&editio...
[–]
stephencanon
3y ago
This varies tremendously across architectures and uarches and compilers. The result will be a quiet NaN, and you can’t say anything beyond that.