MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / Compare

Function Compare

tests/test_decimal.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "../proto/test_final_models.h"
9
10bool Compare(FBE::decimal_t value1, double value2)
11{
12 return (fabs((double)value1 - value2) <= (0.000000000001 * fmin(fabs((double)value1), fabs(value2))));
13}
14
15FBE::decimal_t VerifyDecimal(uint32_t low, uint32_t mid, uint32_t high, bool negative, uint8_t scale)
16{

Callers 2

VerifyDecimalFunction · 0.85
test_decimal.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected