Float Tolerances in NumPy Testing

A personal field guide to choosing floating-point tolerances in NumPy tests, starting from machine epsilon and ending with a few habits for assert_allclose, Hypothesis, and near-zero vector operations.

May 4, 2026 · 7 min · 1451 words · Hojae Lee