MCPcopy Create free account
hub / github.com/ElementsProject/elements / almostEqual

Function almostEqual

src/test/arith_uint256_tests.cpp:366–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365
366static bool almostEqual(double d1, double d2)
367{
368 return fabs(d1-d2) <= 4*fabs(d1)*std::numeric_limits<double>::epsilon();
369}
370
371BOOST_AUTO_TEST_CASE( methods ) // GetHex SetHex size() GetLow64 GetSerializeSize, Serialize, Unserialize
372{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected