473,513 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with rounding in MS-Access 2003

All my number data in Access 2003 automatically rounds to the nearest
interger, even when I request a 2 decimal place format. Is this a
known bug and is there a fix for it?
Nov 12 '05 #1
3 6929
Open the table in design view.
Select the problem field.
In the lower pane, change the Field Size propery from "Long Integer" to
"Double".

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Avery" <av***@TodaysConstruction.com> wrote in message
news:94**************************@posting.google.c om...
All my number data in Access 2003 automatically rounds to the nearest
interger, even when I request a 2 decimal place format. Is this a
known bug and is there a fix for it?

Nov 12 '05 #2
av***@TodaysConstruction.com (Avery) wrote in message news:<94**************************@posting.google. com>...
All my number data in Access 2003 automatically rounds to the nearest
interger, even when I request a 2 decimal place format. Is this a
known bug and is there a fix for it?


Umm... show us the code! What kind of field are you storing it in?
Is it a Single or a Double or Currency? Otherwise, it'll get
truncated.
Nov 12 '05 #3
Make sure you're using the right numeric type when adding a field into
a table - the default is long - which is an integer

av***@TodaysConstruction.com (Avery) wrote in message news:<94**************************@posting.google. com>...
All my number data in Access 2003 automatically rounds to the nearest
interger, even when I request a 2 decimal place format. Is this a
known bug and is there a fix for it?

Nov 12 '05 #4

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

Similar topics

20
11677
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...
5
2680
by: towers | last post by:
Hello, I've got a bit of experience in C++, but I'm writing my first app that is dependent on relatively precise math functions. The app requires that I get a time stamp based on s sample...
3
6717
by: Norvin Laudon | last post by:
Hi, Can somebody explain the following, from the MSDN documentation for the "System.Convert.ToInt32(double)" function <quote> Return Value value rounded to the nearest 32-bit signed...
1
1707
by: graemeharnish | last post by:
Hello. I'm trying to mod an open source app called TinyERP and inherit from a parent object, and in essence change how _column is defined. I found sample code of: class...
5
2245
by: Jason | last post by:
I am having a rounding problem in a value i am trying to display in VB.NET. If I have the following code: Dim x As Single = 2726.795 Dim y As Single = Math.Round(2726.795, 2) Dim s as String =...
8
2010
by: John | last post by:
Hi I am calculating tax as follows; = * / 100# Client complains that there is sometimes difference in pennies in tax calculation. Is there a better (more precise) way to calculate tax? ...
15
3084
by: Chris | last post by:
>>from math import * 0.0 1.2246063538223773e-016 -2.4492127076447545e-016 1.0 -1.0 1.0 The cosine function works fine, but I'm getting weird answers for sine. Is this a bug? Am I doing...
206
13093
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) ...
20
4958
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>
3
2793
by: DM | last post by:
Hi all, I've a problem. The query select mo_qta from oobjm.movoptittraded where mo_opzione = '1,253CEUUS16M08' gives: MO_QTA ------------------------ +2.50347710000000E+005...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
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...
0
7527
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.