The cython function decimal_almost_equal (https://github.com/pydata/pandas/blob/master/pandas/src/testing.pyx#L37) seems to do what we need, but I don't know how/where it is exposed.