MCPcopy Create free account
hub / github.com/FastLED/FastLED / approx_equal

Function approx_equal

tests/fl/math/fixed_point.cpp:2183–2185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2181// ---------------------------------------------------------------------------
2182
2183static bool approx_equal(float a, float b, float eps = 0.01f) {
2184 return (a - b) < eps && (b - a) < eps;
2185}
2186
2187FL_TEST_CASE("u4x12: construction from float") {
2188 u4x12 zero(0.0f);

Callers 1

FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected