approx

infix fun Number.approx(other: Number): Boolean

Checks if two values are approximately equal, such that floating point errors are accounted for.

Return

whether the two numbers are approximately equal by an epsilon of 1e-6

Parameters

other

the other number