Diff two scalar values. If both values are floats, they are compared to
within the given absolute and relative tolerance.
- Parameters:
- a, b
int, float, str Scalar values to compare.
- rtol, atol
float Relative and absolute tolerances as accepted by
numpy.allclose().
- Returns:
- is_differentbool
True if they are different, else False.