within

fun within(a: Double, b: Double, precision: Double = defaultNumericalPrecision): Boolean

Returns true if Math.abs(a-b) < precision

Return

true if within the precision

Parameters

a

the first number

b

the second number

precision

the precision to check