Jason
0
Q:

nearly equal float

#include <cfloat>
bool nearlyEqual(float a, float b) {
	return std::abs(a - b) < FLT_EPSILON;
}
1

New to Communities?

Join the community