odc.geo.math.is_almost_int

odc.geo.math.is_almost_int(x, tol)[source]

Check if number is close enough to an integer.

Parameters:
  • x (float) – number to check

  • tol (float) – tolerance to use.

Return type:

bool