4 ms·
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.
by MaulingMonkey 4y ago
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.
- raphlinus 4y agoThat is correct, here is a playground link which shows that result: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5ca91830039cb3ac1a2f97b12de7cfe0 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- stephencanon 4y agoThis varies tremendously across architectures and uarches and compilers. The result will be a quiet NaN, and you can’t say anything beyond that.