compareWithTolerance Function
An OrderedComparator for numbers that treats two numbers as equal if the absolute value of their difference is less than a specified tolerance.
compareWithTolerance(a: number, b: number, tolerance: number0.1): number
Parameter | Type | Description |
---|---|---|
a | number | |
b | number | |
tolerance | number |
Returns - number
Defined in
- core/bentley/src/Compare.ts Line 35
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.