Return true if the difference between a and b is less than 0.001
true
a
b
0.001
bool isNumberAlmost(double a, int b) => nearEqual(a, b.toDouble(), 0.01);