Lines Matching refs:exp
222 int exp; /* exponent of real numbers */ in vxprintf() local
413 exp = 0; in vxprintf()
415 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; } in vxprintf()
416 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; } in vxprintf()
417 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; } in vxprintf()
418 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; } in vxprintf()
419 if( exp>350 || exp<-350 ){ in vxprintf()
433 if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; } in vxprintf()
437 if( exp<-4 || exp>precision ){ in vxprintf()
440 precision = precision - exp; in vxprintf()
451 if( xtype==etFLOAT && exp+precision<etBUFSIZE-30 ){ in vxprintf()
454 if( exp<0 ) *(bufpt++) = '0'; /* Digits before "." */ in vxprintf()
455 else for(; exp>=0; exp--) *(bufpt++) = et_getdigit(&realvalue,&nsd); in vxprintf()
457 for(exp++; exp<0 && precision>0; precision--, exp++){ in vxprintf()
479 if( exp || flag_exp ){ in vxprintf()
481 if( exp<0 ){ *(bufpt++) = '-'; exp = -exp; } /* sign of exp */ in vxprintf()
483 if( exp>=100 ){ in vxprintf()
484 *(bufpt++) = (exp/100)+'0'; /* 100's digit */ in vxprintf()
485 exp %= 100; in vxprintf()
487 *(bufpt++) = exp/10+'0'; /* 10's digit */ in vxprintf()
488 *(bufpt++) = exp%10+'0'; /* 1's digit */ in vxprintf()