Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - SigFigs.mdb (beginner)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Please consider donating $1 per sample downloaded, (find out why here)

SigFigs.mdb (beginner)

 Post Reply Post Reply
Author
Message
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 249
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: SigFigs.mdb (beginner)
    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.

Download
Access 97 (18 KB):
uploads/5/Sigfigs97.zip
Access 2000 (31 KB): uploads/5/Sigfigs2k.zip
Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down