Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
nearly equal float
Jason
Programming language:
Whatever
2021-06-27 08:50:18
0
Q:
nearly equal float
Yerkezhan
Code:
Whatever
2021-08-29 23:20:33
#include <cfloat> bool nearlyEqual(float a, float b) { return std::abs(a - b) < FLT_EPSILON; }
1
Related
what is a float in programming
R round float values
float('inf')
New to Communities?
Join the community