isNumberAlmost function

bool isNumberAlmost(
  1. double a,
  2. int b
)

Return true if the difference between a and b is less than 0.001

Implementation

bool isNumberAlmost(double a, int b) => nearEqual(a, b.toDouble(), 0.01);