Class: qgsDoubleNear

class qgis.core.qgsDoubleNear(a: float, b: float, epsilon: float = 4 * DBL_EPSILON) → bool

Compare two doubles (but allow some difference)

Parameters
  • a (float) – first double

  • b (float) – second double

  • epsilon (float = 4*DBL_EPSILON) – maximum difference allowable between doubles

Return type

bool