Check if a Decimal value is zero or effectively zero (less than dust threshold).
The Decimal instance to check
Optional threshold for considering a value as zero (default: 0.00000001)
true if the value is zero or below dust threshold
isZeroOrDust(toDecimal("0")); // trueisZeroOrDust(toDecimal("0.000000001")); // true (below default dust)isZeroOrDust(toDecimal("0.001")); // false Copy
isZeroOrDust(toDecimal("0")); // trueisZeroOrDust(toDecimal("0.000000001")); // true (below default dust)isZeroOrDust(toDecimal("0.001")); // false
Check if a Decimal value is zero or effectively zero (less than dust threshold).