Class: qgsFloatNear

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

Compare two floats (but allow some difference)

Parameters:
  • a – first float

  • b – second float

  • epsilon

    maximum difference allowable between floats