D
Danna Dowdy
I have written a function that will first truncate a number, then round
it to a given number of significant digits. It works the majority of
the time but I am getting a few random errors.
For example:
..03305 results in 0.331 instead of 0.330
0.03575 results in 0.357 instead of 0.358
5.015 results in 5.01 instead of 5.02
..02235 results in .0223 instead of .0224
Out of 1400 results, these were the only that were incorrect...
Any ideas??
it to a given number of significant digits. It works the majority of
the time but I am getting a few random errors.
For example:
..03305 results in 0.331 instead of 0.330
0.03575 results in 0.357 instead of 0.358
5.015 results in 5.01 instead of 5.02
..02235 results in .0223 instead of .0224
Out of 1400 results, these were the only that were incorrect...
Any ideas??