Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int approxEqual(double val, double r, double t)
- {
- double upperLimit = r + t;
- double lowerLimit = r - t;
- {
- if (val < upperLimit && val > lowerLimit)
- return 1;
- else
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement