SigFigs.mdb (beginner) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 22 Jul 2008 at 10:39pm |
Please consider donating $1 per sample downloaded, find out why here.
SigFigs.mdb This example illustrates how to round a number to a specified number of significant figures.
Significant figures requires two functions: 1) A function to find where the sigfig should be. "sig_fig_convert()" returns the offset from the decimal point where the number should be rounded. Parameters include the number needing rounding and the number of sig figs. 2) A function to round to that point. "round()" does the rounding to the specified sigfigs. Its parameters are the number needing rounding and the results of the sig_fig_convert() function. |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |