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

Function decNumberDivide

extern/decNumber/decNumber.c:980–989  ·  view source on GitHub ↗

------------------------------------------------------------------ */ decNumberDivide -- divide one number by another */ / This computes C = A / B */ / res is C, the result. C may be A and/or B (e.g., X=X/X) */ lhs is A */ rhs is B

Source from the content-addressed store, hash-verified

978/* C must have space for set->digits digits. */
979/* ------------------------------------------------------------------ */
980decNumber * decNumberDivide(decNumber *res, const decNumber *lhs,
981 const decNumber *rhs, decContext *set) {
982 uInt status=0; // accumulator
983 decDivideOp(res, lhs, rhs, set, DIVIDE, &status);
984 if (status!=0) decStatus(res, status, set);
985 #if DECCHECK
986 decCheckInexact(res, set);
987 #endif
988 return res;
989 } // decNumberDivide
990
991/* ------------------------------------------------------------------ */
992/* decNumberDivideInteger -- divide and return integer quotient */

Callers

nothing calls this directly

Calls 2

decStatusFunction · 0.85
decCheckInexactFunction · 0.85

Tested by

no test coverage detected