Skip to content
masterclass Buddy

NumPy · Function

np.allclose

Checks whether two numeric arrays are close element by element within relative and absolute tolerances. It returns one True or False value.

Last updated

Syntax

numpy.allclose(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
  • numpy.isclose
  • numpy.all
  • numpy.any
  • numpy.equal

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