E
easykey
I have this module to help physically round the currency
figures to pence....
Option Compare Database
Option Explicit
Const Factor = 100
Function RoundVAT(X)
RoundVAT = Int(X * Factor + 0.5) / Factor
End Function
The problem is that it seems that accountancy rules
suggest that .005 needs to round UP
So at the moment £165 net produces £28.87 (where VAT is
17.5%) In other words the true figure 28.875 needs to be
returned as £28.88 ...any suggestions?
figures to pence....
Option Compare Database
Option Explicit
Const Factor = 100
Function RoundVAT(X)
RoundVAT = Int(X * Factor + 0.5) / Factor
End Function
The problem is that it seems that accountancy rules
suggest that .005 needs to round UP
So at the moment £165 net produces £28.87 (where VAT is
17.5%) In other words the true figure 28.875 needs to be
returned as £28.88 ...any suggestions?