nearZero function

bool nearZero (double a, double epsilon)

Whether a double is within a given distance of zero.

The epsilon argument must be positive.

Implementation

bool nearZero(double a, double epsilon) => nearEqual(a, 0.0, epsilon);