Sat, 01 Jul 2000 13:31:40 +0200
trunk: changeset 18
long double -> double
numparser2.h | file | annotate | diff | comparison | revisions |
--- a/numparser2.h Sat Jun 03 19:00:43 2000 +0200 +++ b/numparser2.h Sat Jul 01 13:31:40 2000 +0200 @@ -19,7 +19,7 @@ int type; int base; bool negative; - long double fval; + double fval; ulong ival; } NPNum; @@ -27,9 +27,9 @@ static int npnum_mulbase_add(NPNum *num, long base, long v) { - long double iold=num->ival; + double iold=num->ival; - num->fval=num->fval*base+(long double)v; + num->fval=num->fval*base+(double)v; num->ival*=base; @@ -169,7 +169,7 @@ int err=0; int tmp; #ifdef NP_SIMPLE_IMPL - long double divisor=base; + double divisor=base; #endif if(c=='-' || c=='+'){ @@ -223,7 +223,7 @@ #ifdef NP_SIMPLE_IMPL if(dm==3){ - num->fval+=(long double)c/divisor; + num->fval+=(double)c/divisor; divisor*=base; }else #endif