Skip to content
masterclass Buddy

NumPy · Function

np.isclose

Checks whether corresponding values in two array-like inputs are close within relative and absolute tolerances. It returns Boolean results and can optionally treat matching NaN values as equal.

Last updated

Syntax

numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • allclose
  • math.isclose

Source: numpy.isclose — NumPy v2.5 Manual. Checked 2026-11-03.