nearbyclose
nearbyclose is a lightweight open‑source library for performing approximate equality comparisons on numeric data. It was originally developed for scientific computing projects that require flexible tolerance handling in floating‑point arithmetic. The core feature of nearbyclose is the nearbyclose() function, which takes two numbers and a relative or absolute tolerance, and returns true if the two values are considered equal within that tolerance. The library also offers utilities for batch comparison across arrays, integration with NumPy, and support for complex numbers.
The project was created by a team of developers working on data‑analysis tools. It is distributed under
nearbyclose has been adopted by a number of research groups that need to avoid false positives in