MCPcopy Create free account
hub / github.com/davidrmiller/biosim4 / areClosef

Function areClosef

src/unitTestBasicTypes.cpp:13–16  ·  view source on GitHub ↗

returns true only if a and b are the same to within 4 digits accuracy

Source from the content-addressed store, hash-verified

11// returns true only if a and b are the same to within
12// 4 digits accuracy
13bool areClosef(float a, float b)
14{
15 return std::abs(a - b) < 0.0001;
16}
17
18
19bool unitTestBasicTypes()

Callers 1

unitTestBasicTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected