//ERDDAP/com.cohort.util/ScriptMath2/almostEqual
almostEqual
[JVM]
open fun almostEqual(nSignificantDigits: Int, d1: Double, d2: Double): Boolean
This tests if the numbers are equal to at least n significant digits.
- Numbers must match to 1 part in 10^n to ensure that rounding to n-1 digits is identical.
- If d1 and d2 are almost0, this returns true.
- This is slow compared to almost0.