Home | History | Annotate | Download | only in i18n

Lines Matching refs:round

216 /* round-for-reround digits                                           */
719 /* always check for overflow or subnormal and round as needed */
1464 /* round to a single digit... */
1475 decCopyFit(res, w, set, &residue, &status); /* copy & round */
1705 workset.round=DEC_ROUND_FLOOR;
1742 workset.round=DEC_ROUND_CEILING;
1790 workset.round=DEC_ROUND_CEILING;
1799 workset.round=DEC_ROUND_FLOOR;
2147 aset.round=DEC_ROUND_HALF_EVEN; /* internally use balanced */
2258 /* round subnormals [to set.digits rather than aset.digits] */
2371 decCopyFit(res, rhs, set, &residue, &status); /* copy & round */
3016 approxset.round=DEC_ROUND_HALF_EVEN;
3045 workset.round=DEC_ROUND_UP;
3053 /* assign to approx [round to length] */
3060 workset.round=DEC_ROUND_DOWN;
3067 /* assign to approx [round to length] */
3185 /* decNumberToIntegralExact -- round-to-integral-value with InExact */
3186 /* decNumberToIntegralValue -- round-to-integral-value */
3914 if (set->round!=DEC_ROUND_FLOOR) res->bits=0;
4109 if (set->extended) { /* round from first significant digit */
4156 /* except round toward -Infinity, in which mode that sign shall be */
4163 if (set->round==DEC_ROUND_FLOOR) res->bits|=DECNEG; /* sign - */
4208 /* msu2pair/plus=1st 2 or 1 units of var2, +1 to allow for round */
4765 /* This is effectively causing round-up of the quotient, */
4815 /* If a divide then strip trailing zeros if subset [after round] */
5219 /* round-off error accumulation during the series evaluation. This */
5223 /* and do not accumulate round-off (and any round-off errors in the */
5517 /* Copy and round the result to res */
5681 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5687 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5743 aset.digits=2; aset.round=DEC_ROUND_DOWN;
5752 aset.digits=16; aset.round=DEC_ROUND_HALF_EVEN; /* restore */
5832 /* Copy and round the result to res */
5957 /* digits, and must round as it does so */
5963 decApplyRound(res, &workset, residue, status); /* .. and round */
6830 /* decRoundOperand -- round an operand [used for subset only] */
6832 /* dn is the number to round (dn->digits is > set->digits) */
6850 uInt newstatus=0; /* status from round */
6915 /* indicating a round to left. This routine handles that case */
7120 /* now decide whether, and how, to round, depending on mode */
7121 switch (set->round) {
7122 case DEC_ROUND_05UP: { /* round zero or five up (for reround) */
7184 printf("Unknown rounding mode: %d\n", set->round);
7302 /* decFinalize -- final check, clamp, and round of a number */
7325 /* round as the result could be rounded to Nmin or 0. */
7331 /* Go handle subnormals; this will apply round if needed. */
7351 /* now apply any pending round (this could raise overflow). */
7404 switch (set->round) {
7466 /* Otherwise ensure exponent is not out of range, and round as */
7961 && (set->digits<1 || set->round>=DEC_ROUND_MAX)) {
7964 printf("Bad context [digits=%ld round=%ld].\n",
7965 (LI)set->digits, (LI)set->round);