Home | History | Annotate | Download | only in libdecnumber

Lines Matching defs:digits

64 /* If there is an error (that is, the decNumber has too many digits   */
73 Int indigs=dn->digits; /* digits processed */
81 if (dn->digits>length*2-1 /* too long .. */
139 /* dn is the decNumber [with space for length*2 digits] */
144 /* of digits, and must be ended by a 4-bit sign nibble in the least */
151 /* hold the converted number (that is, up to length*2-1 digits), so */
163 Int digits; /* digits count */
174 digits=(last-first)*2+1; /* calculate digits .. */
175 if ((*first & 0xf0)==0) digits--; /* adjust for leading zero nibble */
176 if (digits!=0) dn->digits=digits; /* count of actual digits [if 0, */
182 if ((dn->digits-*scale-1)<-DECNUMMAXE) { /* underflow */
188 if ((*scale<-DECNUMMAXE) /* overflow even without digits */
189 || ((dn->digits-*scale-1)>DECNUMMAXE)) { /* overflow */
193 if (digits==0) return dn; /* result was zero */
195 /* copy the digits to the number's units, starting at the lsu */
205 digits--;
206 if (digits==0) break; /* got them all */
219 digits--;
220 if (digits==0) break; /* got them all */