Geom.isGreatEqual()
Description
Returns true
, if the value of arg₁
is greater than or equal to the value of arg₂
with consideration for precision eps
.
Syntax
JSGeom.isGreatEqual(arg1: Number, arg2: Number, eps: Number = Geom.EPSILON) -> Boolean
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
arg1 |
Number |
— |
 |
First numerical value. |
arg2 |
Number |
— |
 |
Second numerical value. |
eps |
Number |
Geom.EPSILON |
❌ |
Precision of comparing numbers with floating-point. |
Return value
Type |
Description |
Boolean |
Result of the operation. |
Example
JS |
---|
| let ret = Geom.isGreatEqual(5.0000001, 5.0, 1e-6)
console.info(ret) // output: true
|
Last update: 14 August 2025, 18:47