there should not be any representable number between ``x + spacing(x)`` and x for any finite x. Spacing of +- inf and NaN is NaN. Examples -------- >>> import numpy as np >>> np.spacing(1) == np.finfo(np.float64).eps True