Re:How to compare floats in Python
by cdavid on Thursday March 31, 2022 @09:00AM
(#30866679)
relative tolerance is not always enough, especially near 0. This classic article gives a nice overview of absolute, relative, ulp-based and other methods for comparison of float numbers: https://randomascii.wordpress.com/2012/02/25/comparing-float...
[ Parent
| on HN ]