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

Method toInteger

src/common/DecFloat.cpp:701–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701int Decimal128::toInteger(DecimalStatus decSt, int scale) const
702{
703 Decimal128 tmp(*this);
704 tmp.setScale(decSt, -scale);
705 DecimalContext context(this, decSt);
706 enum rounding rMode = decContextGetRounding(&context);
707 return decQuadToInt32(&tmp.dec, &context, rMode);
708}
709
710void Decimal128::toString(DecimalStatus decSt, unsigned length, char* to) const
711{

Callers

nothing calls this directly

Calls 2

decContextGetRoundingFunction · 0.85
setScaleMethod · 0.45

Tested by

no test coverage detected