lessThanOrEquals

fun lessThanOrEquals(left: Double, right: Double, absoluteEpsilon: Double): Boolean(source)

Determines if the left value is less than or equal to the right value. If the two values are within absoluteEpsilon of each other, they are considered equal and this function returns true.

Return

true if left is less than right or if the the values are nearly equal.

Parameters

left

The first number to compare.

right

The second number to compare.

absoluteEpsilon

The absolute epsilon to use in comparison.

See also