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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Issue of pennies



 
 
Thread Tools Display Modes
  #1  
Old March 1st, 2010, 08:16 PM posted to microsoft.public.access
John
external usenet poster
 
Posts: 308
Default Issue of pennies

Hi

I have this problem on report that the total is out by a penny and client is
complaining. Like below;

Net £334.31
Vat £58.50
Total £392.82

How can I fix it so calculations seem correct to the second decimal?

Thanks

Regards


  #2  
Old March 1st, 2010, 08:34 PM posted to microsoft.public.access
James A. Fortune
external usenet poster
 
Posts: 903
Default Issue of pennies

On Mar 1, 3:16 pm, "John" wrote:
Hi

I have this problem on report that the total is out by a penny and client is
complaining. Like below;

Net £334.31
Vat £58.50
Total £392.82

How can I fix it so calculations seem correct to the second decimal?

Thanks

Regards


Perhaps:

http://groups.google.com/group/comp....b62fc73ccf04d8

James A. Fortune

  #3  
Old March 1st, 2010, 08:37 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Issue of pennies

On Mon, 1 Mar 2010 20:16:24 -0000, "John" wrote:

Hi

I have this problem on report that the total is out by a penny and client is
complaining. Like below;

Net £334.31
Vat £58.50
Total £392.82

How can I fix it so calculations seem correct to the second decimal?

Thanks

Regards


A Currency datatype has four decimals, even when only two are shown; if you're
using a Single or Double (not the best idea) there will be even more.

I'd suggest wrapping the calculation in a call to the Round() function. You
don't say how the calculation is done but it might be something like setting
VAT to

Round([Net] * [VATRate], 2)

adapted to your situation.
--

John W. Vinson [MVP]
  #4  
Old March 17th, 2010, 01:42 PM posted to microsoft.public.access
joelgeraldine
external usenet poster
 
Posts: 201
Default Issue of pennies

,;,;v;,hv;

"John" a écrit dans le message de groupe de
discussion : ...
Hi

I have this problem on report that the total is out by a penny and client
is complaining. Like below;

Net £334.31
Vat £58.50
Total £392.82

How can I fix it so calculations seem correct to the second decimal?

Thanks

Regards


 




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 11:32 PM.


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