tolerance
The small difference within which two computed doubles are treated as equal.
Doubles produced by arithmetic are compared with Math.abs(a - b) < tolerance rather than ==, with the tolerance scaled to the values' magnitude.
Examples
Math.abs(total - 0.3) < 1e-9instead oftotal == 0.3.
See also