MCPcopy Create free account
hub / github.com/apache/fory / decimal_equal_value

Function decimal_equal_value

cpp/fory/serialization/compatible_scalar.cc:402–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402bool decimal_equal_value(const Decimal &left, const Decimal &right) {
403 Decimal a;
404 Decimal b;
405 if (!canonical_decimal(left, a) || !canonical_decimal(right, b)) {
406 return false;
407 }
408 return a == b;
409}
410
411bool decimal_to_integral_magnitude(const Decimal &decimal, BigUInt &magnitude,
412 bool &negative) {

Callers 4

decimal_to_float16Function · 0.85
decimal_to_bfloat16Function · 0.85
decimal_to_float32Function · 0.85
decimal_to_float64Function · 0.85

Calls 1

canonical_decimalFunction · 0.70

Tested by

no test coverage detected