MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / totalOrder

Method totalOrder

src/common/DecFloat.cpp:579–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579short Decimal64::totalOrder(Decimal64 op2) const
580{
581 decDouble r;
582 decDoubleCompareTotal(&r, &dec, &op2.dec);
583 fb_assert(!decDoubleIsNaN(&r));
584
585 DecimalContext context2(this, 0);
586 return decDoubleToInt32(&r, &context2, DEC_ROUND_HALF_UP);
587}
588
589/*
590 * decCompare() implements SQL function COMPARE_DECFLOAT() which has non-traditional return values.

Callers 1

evlCompareFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected