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

Method sqrt

src/common/DecFloat.cpp:948–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948Decimal128 Decimal128::sqrt(DecimalStatus decSt) const
949{
950 decNumber dn;
951 decQuadToNumber(&dec, &dn);
952
953 DecimalContext context(this, decSt);
954 decNumberSquareRoot(&dn, &dn, &context);
955
956 Decimal128 rc;
957 decQuadFromNumber(&rc.dec, &dn, &context);
958 return rc;
959}
960
961Decimal128 Decimal128::pow(DecimalStatus decSt, Decimal128 op2) const
962{

Callers 2

aggExecuteMethod · 0.80
evlSqrtFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected