Remix.run Logo
jcranmer 9 hours ago

No, the two evaluations will give you exactly the same result: https://play.rust-lang.org/?version=stable&mode=debug&editio...

IEEE 754 operations are nonassociative, but they are commutative (at least if you ignore the effect of NaN payloads).

dbdr an hour ago | parent [-]

Is there a case involving NaN where they are not commutative? Do you mean getting a different bit-level representation of NaN?

Remnant44 5 minutes ago | parent [-]

In practical use for simd, various min/max operations. On Intel at least, they propagate nan or not based on operand order