nearZero function Null safety

bool nearZero(
  1. double a,
  2. 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);