Lines Matching refs:exp
453 mp_exp_t exp;
469 s = mpfr_get_str(NULL,&exp,b,0,mp,mode);
470 ns = mpfr_get_str(NULL,&exp,b,n,mp,mode);
487 if (exp>0 && static_cast<size_t>(exp)<slen)
493 while (*ptr=='0' && ptr>s+exp) ptr--;
495 if(ptr==s+exp) out = string(s,exp+1);
496 else out = string(s,exp+1)+'.'+string(s+exp+1,ptr-(s+exp+1)+1);
498 //out = string(s,exp+1)+'.'+string(s+exp+1);
504 while (*ptr=='0' && ptr>s+exp-1) ptr--;
506 if(ptr==s+exp-1) out = string(s,exp);
507 else out = string(s,exp)+'.'+string(s+exp,ptr-(s+exp)+1);
509 //out = string(s,exp)+'.'+string(s+exp);
512 }else{ // exp<0 || exp>slen
537 if(--exp)
539 if(exp>0) out += "e+"+mpfr::toString<mp_exp_t>(exp,std::dec);
540 else out += "e"+mpfr::toString<mp_exp_t>(exp,std::dec);