Math.isLessEqual()
Description
Returns true
if the value of arg₁
is less than or equal to the value of arg₂
, considering the precision of eps
.
Syntax
JSMath.isLessEqual(arg1: Number, arg2: Number, eps: Number = Math.EPSILON) -> Boolean
Parameters
Parameter |
Type |
Default Value |
Required |
Description |
arg1 |
Number |
— |
 |
The first numerical value. |
arg2 |
Number |
— |
 |
The second numerical value. |
eps |
Number |
Math.EPSILON |
❌ |
The precision of comparing floating point numbers. |
Return value
Type |
Description |
Boolean |
The result of the operation. |
Example
JS |
---|
| let ret = Math.isLessEqual(1, 1.1)
|
Last update: 14 August 2025, 18:47