almostEq

infix inline fun <T : Number> T.almostEq(other: T): Boolean

Returns a Boolean if this value almost equals the other value (not equals).

Example:

2 almostEq 1.99999 // true
1.99999 almostEq 2 // true
2 almostEq 2 // false

Since

1.1.0

See also

round