A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Number format issue Access 2007



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2010, 01:54 PM posted to microsoft.public.access.tablesdbdesign
WSR[_2_]
external usenet poster
 
Posts: 40
Default Number format issue Access 2007

Access 2007.

I've created a database with a number input and I'm getting the following
errors.

I've formatted a field as
Number
Field Size: Single
Format: Currency
Decimal Places: 0

I'm getting the following results
Input 2,065,000,000 but it's rounding it to 2,064,999,936
Input 2,682,000,000 but getting rounded to 2,681,999,872

Any ideas on the reason for this? Do I have that field formatted properly?

You help is GREATLY appreciated!

(B^)-]=[


  #2  
Old February 23rd, 2010, 03:27 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Number format issue Access 2007

Single is a floating point type.
Accuracy is only 7 or 8 significant digits.
More info:
http://en.wikipedia.org/wiki/Floatin...uracy_problems

If you want to store large numbers as per your entry, consider using a
Currency field, a Double, or a Decimal field.

--
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.


"WSR" wrote in message
...
Access 2007.

I've created a database with a number input and I'm getting the following
errors.

I've formatted a field as
Number
Field Size: Single
Format: Currency
Decimal Places: 0

I'm getting the following results
Input 2,065,000,000 but it's rounding it to 2,064,999,936
Input 2,682,000,000 but getting rounded to 2,681,999,872

Any ideas on the reason for this? Do I have that field formatted properly?

You help is GREATLY appreciated!

(B^)-]=[

  #3  
Old February 23rd, 2010, 04:14 PM posted to microsoft.public.access.tablesdbdesign
WSR[_2_]
external usenet poster
 
Posts: 40
Default Number format issue Access 2007

Thanks Allen.

Putting your solution to work.

Regards,

(B^)

"Allen Browne" wrote in message
...
Single is a floating point type.
Accuracy is only 7 or 8 significant digits.
More info:
http://en.wikipedia.org/wiki/Floatin...uracy_problems

If you want to store large numbers as per your entry, consider using a
Currency field, a Double, or a Decimal field.

--
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.


"WSR" wrote in message
...
Access 2007.

I've created a database with a number input and I'm getting the following
errors.

I've formatted a field as
Number
Field Size: Single
Format: Currency
Decimal Places: 0

I'm getting the following results
Input 2,065,000,000 but it's rounding it to 2,064,999,936
Input 2,682,000,000 but getting rounded to 2,681,999,872

Any ideas on the reason for this? Do I have that field formatted
properly?

You help is GREATLY appreciated!

(B^)-]=[



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.