Testing floating point equality August 28, 2023 by Tarik For comparing numbers, there is math.isclose. For comparing numbers or arrays, there is numpy.allclose. For testing numbers or arrays, there is numpy.testing.assert_allclose