|
|
|
|
|
by imtringued
219 days ago
|
|
https://play.rust-lang.org/?version=stable&mode=debug&editio... You're supposed to do (a+b) to demonstrate the effect, because floating point subtraction that results in a number near zero is sensitive to rounding (worst case, a non-zero number gets you a zero number), which can introduce a huge error when a and b are very similar numbers. |
|
The confusion between associativity and commutativity is the entire point of this thread!