Using INT()

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

Am I doing this correctly? This is for Tax Reasons.
Here is my example;
Int((NumberToRound * 100) + 0.5) / 100

Her is my Code
Me.TxtNoneTax = Int(Nz(DSum("(CDQuantity*CDFinalPrice)*CDTaxRate",
"tblCheckDetailsTMP", "CDCheckID = " & Forms!Form2!TxtCheckID & " AND
CDDiscountDP = 0"), 0) * 100 + 0.5) / 100

Thanks
DS
 
I guess I do want the basic rounding, the problem with the round function is
that it isn't great when it comes to taxes, this seems to be working fine
for now. Thanks
DS
 
Hi Marsh,
What did you mean Round To Negative? What part of the code does that? And
if I wanted to Rount To Positive how would I do that?
Thanks, I appreciate the input.
DS
 
Thanks Marsh,
After looking into it I've decided to use the Round() set to 2 . There's an
article about it by Allen Browne, it's called Bankers Rounding. So if it's
good enough for a bank, I guess it will do for me.
Thanks
DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Line Break 9
Function Returns 0 3
Two D Statemnets 4
Form Reference 5
DSum Problem 2
Union Query Format 6
Argument Not Optional 3
SQL ORDER BY 1

Back
Top