473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Rounding Up problems

Hello Everyone

I'm using Access 2000.

I have a slight quirk in my database which I am sure is logical and
easy to rectify-

basically my database adds up six scores and works out an average,
i.e.

(3+3+3+4+4+4)/6 = 3.5 and displays correctly as 4 (to 1 signficant
digit)- not rocket science I know! However when my scores are:
(4+4+4+5+5+5)/6= 4.5- it displays as 4 when I want it to show 5!!

The final score is displayed in a text box.

Any help is much appreciated.

thanks

D.
Nov 13 '05 #1
2 3222
Hi,

You'll probably get a whole bunch of suggestions on this...
This KB article
http://support.microsoft.com/default...;en-us;Q155696 contains my
personal favorite.

It allows you to specify a direction (round up / round down) as well as the
increment (eg .05 rounds currency values to the nearest nickel.)

Don

"deejayquai" <de********@hotmail.com> wrote in message
news:3a*************************@posting.google.co m...
Hello Everyone

I'm using Access 2000.

I have a slight quirk in my database which I am sure is logical and
easy to rectify-

basically my database adds up six scores and works out an average,
i.e.

(3+3+3+4+4+4)/6 = 3.5 and displays correctly as 4 (to 1 signficant
digit)- not rocket science I know! However when my scores are:
(4+4+4+5+5+5)/6= 4.5- it displays as 4 when I want it to show 5!!

The final score is displayed in a text box.

Any help is much appreciated.

thanks

D.

Nov 13 '05 #2
"Don Leverton" <le****************@telusplanet.net> wrote in message news:<Upnzc.19082$lN.18316@edtnps84>...
Hi,

You'll probably get a whole bunch of suggestions on this...
This KB article
http://support.microsoft.com/default...;en-us;Q155696 contains my
personal favorite.

It allows you to specify a direction (round up / round down) as well as the
increment (eg .05 rounds currency values to the nearest nickel.)

Don

"deejayquai" <de********@hotmail.com> wrote in message
news:3a*************************@posting.google.co m...
Hello Everyone

I'm using Access 2000.

I have a slight quirk in my database which I am sure is logical and
easy to rectify-

basically my database adds up six scores and works out an average,
i.e.

(3+3+3+4+4+4)/6 = 3.5 and displays correctly as 4 (to 1 signficant
digit)- not rocket science I know! However when my scores are:
(4+4+4+5+5+5)/6= 4.5- it displays as 4 when I want it to show 5!!

The final score is displayed in a text box.

Any help is much appreciated.

thanks

D.


Thanks Don -

however I'm not sure if that solves things because I can't see how I
can predetermine whether I want to round up or down- I basically want
the system to know that whenever a value reaches 0.5 it automatically
rounds up to the next whole digit- which is what I was taught should
be done when calculating to 1 significant digit, and for some reason
it doesn't like doing it for 4.5!!

Hope you [or someone] are able to help.

D.
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Raoul Watson | last post by:
By any chance, anyone got a rounding routine that does a work around the VB "round" bug? I still find it amazing that a company as large as Microsoft would put out a math package that is so...
3
by: Dalan | last post by:
Is there any code available to address currency rounding problems in Access 97? Apparently, selecting currency type table fields does not resolve the problem. For instance, in my form I have a...
3
by: Caesar Augustus | last post by:
Hello Tom, Long time listener, first time caller... I have been working with vb code to automate a salary increase process that not only rounds to the nearest penny but also rounds to the...
9
by: Joe Attardi | last post by:
Hi all, Math is not my strongest area so forgive me if I use some of the wrong terminology. It seems that scientific notation is immune to rounding errors. For example: (4.98 * 100) + 5.51 ...
29
by: Marco | last post by:
Hello, I have : float f = 36.09999999; When I do : char cf; sprintf(cf,"%0.03lf", f); I get : 36.100
11
by: The Cool Giraffe | last post by:
I have trouble making the following line compile. int a = round (2.6); I have, of course, included <cmathand i can go flooring and ceiling with no problems. However, the rounding seems...
206
by: md | last post by:
Hi Does any body know, how to round a double value with a specific number of digits after the decimal points? A function like this: RoundMyDouble (double &value, short numberOfPrecisions) ...
2
by: bagerbeiger | last post by:
I am relatively new to programming (3-5 months) and have to write a program that prompts users for input (number of items ordered at a restaurant), performs some monetary calculations, and then...
20
by: jacob navia | last post by:
Hi "How can I round a number to x decimal places" ? This question keeps appearing. I would propose the following solution #include <float.h> #include <math.h>
30
by: bdsatish | last post by:
The built-in function round( ) will always "round up", that is 1.5 is rounded to 2.0 and 2.5 is rounded to 3.0. If I want to round to the nearest even, that is my_round(1.5) = 2 # As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.