fuzzyCompare

fun fuzzyCompare(a: Double, b: Double, tolerance: Double): Int

Returns the comparison of a and b with a defined tolerance.

Return

0 for a fuzzyEquals b; -1 for a < b; 1 for a b

Parameters

a

first value

b

second value

tolerance

allowed tolerance