in reply to Getting rounded off values from database.
e.g. is the output something like this?:
..because if it is then I suspect that what you want to do is print 16 digits to the right of the decimal point regardless of whether they are significant or not. In which case do something like this for your printing line:1/1/2005 12/31/2999 11.3700000000000016 1/1/2005 12/31/2999 7.54 1/1/2005 12/31/2999 12.07 1/1/2005 12/31/2999 3 1/1/2005 12/31/2999 3.8 1/1/2005 12/31/2999 12.99
printf( DISCOUNT "%s\t%s\t%.16f\n" $mdstartdate,$mdenddate,$mddiscountrate );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting rounded off values from database.
by Nesh (Beadle) on Jul 06, 2005 at 23:26 UTC |