2 ms·
> floating point without can represent two numbers whose difference is smaller than the number can represent and rounds to zero Did you intend to say "without
by mbauman 2y ago
> floating point without can represent two numbers whose difference is smaller than the number can represent and rounds to zero
Did you intend to say "without FTZ/DAZ enabled"? If so, that's completely and provenly false.
https://en.wikipedia.org/wiki/Sterbenz_lemma https://en.wikipedia.org/wiki/Sterbenz_lemma
Perhaps a better example than `z/(x-y)` is `log(x-y)`. Unlike division by 0.0, `log(0.0)` often throws an immediate error whereas `log(5e-324)` is a finite — and meaningful! — result.