|
|
|
|
|
by bee_rider
60 days ago
|
|
EQ should be exactly equal, I think. Although we often (incorrectly) model floats as a real plus some non-deterministic error, there are cases where you can expect an exact bit pattern, and that’s what EQ is for (the obvious example is, you could be writing a library and accept a scaling factor from the user—scaling factors of 1 or 0 allow you to optimize). You probably also want an isclose and probably want to push most users toward using that. |
|