coerceZero function

double coerceZero(
  1. double a
)

Forces small numbers near zero to zero.

Zero if |a| is smaller than 2^(-53) = 1.11e-16, a otherwise.

Implementation

double coerceZero(double a) => coerceZeroD(a, doublePrecision);