Calculate the fuzzy ceiling of the given value.
name | type | arguments | Default | description |
---|---|---|---|---|
value | number |
The value. |
||
epsilon | number | <optional> | 0.0001 |
The epsilon. |
The fuzzy ceiling of the value.
Check whether the given values are fuzzily equal.
Two numbers are fuzzily equal if their difference is less than epsilon
.
name | type | arguments | Default | description |
---|---|---|---|---|
a | number |
The first value. |
||
b | number |
The second value. |
||
epsilon | number | <optional> | 0.0001 |
The epsilon. |
true
if the values are fuzzily equal, otherwise false
.
Calculate the fuzzy floor of the given value.
name | type | arguments | Default | description |
---|---|---|---|---|
value | number |
The value. |
||
epsilon | number | <optional> | 0.0001 |
The epsilon. |
The floor of the value.
Check whether a
is fuzzily greater than b
.
a
is fuzzily greater than b
if it is more than b - epsilon
.
name | type | arguments | Default | description |
---|---|---|---|---|
a | number |
The first value. |
||
b | number |
The second value. |
||
epsilon | number | <optional> | 0.0001 |
The epsilon. |
true
if a
is fuzzily greater than than b
, otherwise false
.
Check whether a
is fuzzily less than b
.
a
is fuzzily less than b
if it is less than b + epsilon
.
name | type | arguments | Default | description |
---|---|---|---|---|
a | number |
The first value. |
||
b | number |
The second value. |
||
epsilon | number | <optional> | 0.0001 |
The epsilon. |
true
if a
is fuzzily less than b
, otherwise false
.