isNearlyEqual(1110, 1112, 3) returns .true. isNearlyEqual(1.2, 1.0, 3) returns .false. isNearlyEqual(1.234, 1.231, 3) returns .true. isNearlyEqual(1.2349, 1.2351, 3) returns .true.