Back to Math
isapprox
Test whether two values are approximately equal (within 1e-10).
Syntax
isapprox(a, b) → r
Backends
TypeScript
Description
Test whether two values are approximately equal (within 1e-10).
Parameters
| Name | Description |
|---|---|
| a | First value |
| b | Second value |
Returns
true if |a - b| < 1e-10
Examples
Try It
>> isapprox(0.1 + 0.2, 0.3)