Lines Matching refs:round
706 /* always check for overflow or subnormal and round as needed */
1447 /* round to a single digit... */
1458 decCopyFit(res, w, set, &residue, &status); /* copy & round */
1685 workset.round=DEC_ROUND_FLOOR;
1722 workset.round=DEC_ROUND_CEILING;
1770 workset.round=DEC_ROUND_CEILING;
1779 workset.round=DEC_ROUND_FLOOR;
2127 aset.round=DEC_ROUND_HALF_EVEN; /* internally use balanced */
2238 /* round subnormals [to set.digits rather than aset.digits] */
2351 decCopyFit(res, rhs, set, &residue, &status); /* copy & round */
2992 approxset.round=DEC_ROUND_HALF_EVEN;
3021 workset.round=DEC_ROUND_UP;
3029 /* assign to approx [round to length] */
3036 workset.round=DEC_ROUND_DOWN;
3043 /* assign to approx [round to length] */
3158 /* decNumberToIntegralExact -- round-to-integral-value with InExact */
3159 /* decNumberToIntegralValue -- round-to-integral-value */
3887 if (set->round!=DEC_ROUND_FLOOR) res->bits=0;
4080 if (set->extended) { /* round from first significant digit */
4127 /* except round toward -Infinity, in which mode that sign shall be */
4134 if (set->round==DEC_ROUND_FLOOR) res->bits|=DECNEG; /* sign - */
4179 /* msu2pair/plus=1st 2 or 1 units of var2, +1 to allow for round */
4736 /* This is effectively causing round-up of the quotient, */
4786 /* If a divide then strip trailing zeros if subset [after round] */
5186 /* round-off error accumulation during the series evaluation. This */
5190 /* and do not accumulate round-off (and any round-off errors in the */
5484 /* Copy and round the result to res */
5644 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5650 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5706 aset.digits=2; aset.round=DEC_ROUND_DOWN;
5715 aset.digits=16; aset.round=DEC_ROUND_HALF_EVEN; /* restore */
5795 /* Copy and round the result to res */
5917 /* digits, and must round as it does so */
5923 decApplyRound(res, &workset, residue, status); /* .. and round */
6790 /* decRoundOperand -- round an operand [used for subset only] */
6792 /* dn is the number to round (dn->digits is > set->digits) */
6810 uInt newstatus=0; /* status from round */
6875 /* indicating a round to left. This routine handles that case */
7079 /* now decide whether, and how, to round, depending on mode */
7080 switch (set->round) {
7081 case DEC_ROUND_05UP: { /* round zero or five up (for reround) */
7143 printf("Unknown rounding mode: %d\n", set->round);
7261 /* decFinalize -- final check, clamp, and round of a number */
7284 /* round as the result could be rounded to Nmin or 0. */
7290 /* Go handle subnormals; this will apply round if needed. */
7310 /* now apply any pending round (this could raise overflow). */
7363 switch (set->round) {
7425 /* Otherwise ensure exponent is not out of range, and round as */
7920 && (set->digits<1 || set->round>=DEC_ROUND_MAX)) {
7923 printf("Bad context [digits=%ld round=%ld].\n",
7924 (LI)set->digits, (LI)set->round);