Class: qgsFloatNear

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

Compare two floats (but allow some difference)

Parameters
  • a (float) – first float

  • b (float) – second float

  • epsilon (float = 4*FLT_EPSILON) – maximum difference allowable between floats

Return type

bool