Go to: Synopsis. Return value. MEL examples.

Synopsis

int equivalentTol(float $a, float $b, float $tol)

Compare 2 float values within the given tolerance value.

Return value

None

Arguments

Variable Name Variable Type Description
$afloatFirst value to compare
$bfloatValue to compare with

MEL examples

  equivalentTol(0.0, 0.0005, 0.001);
  // Result : 1 //
  equivalentTol(0.0, 0.005, 0.001);
  // Result : 0 //