Hello - another problem with decimals..
In the tax table, I have the following pertinent fields:
numStateTaxRate
numCountyTaxRate
numCityTaxRate
numDiscountRate
They all have a data type of currency, format of percent and I've tried with decimal places being "auto" and set to 6.
I have a bound form, showing these fields, formatted as a percent with 4 decimal places:
State Rate: 0.0000%
County Rate: 6.3000%
City Rate: 1.8000%
Discount Rate: 35.0000%
Then I have an unbound field that calculates the total:
Total Tax Rate:
=([numCountyTaxRate]+[numStateTaxRate]+[numCityTaxRate])
The above is accurate.
Then I have another unbound field to calculate the rate after discount:
Effective Rate: =CCur([numCountyTaxRate]+[numStateTaxRate]+[numCityTaxRate])*CCur(1-[numDiscountRate])
I have tried both with and without Ccur.
So the answer should be
(0 + .063 + .018) * (1 - .35)
.081 * .65 = 0.05265
But on my form, it shows up as 5.2600%
Why isn't it keeping the last 5? It isn't rounding either.
I thought the currency data type (even if formatted as a percent) would be accurate to 15 decimal places.
What am I missing?
Thanks,
/Wendy
In the tax table, I have the following pertinent fields:
numStateTaxRate
numCountyTaxRate
numCityTaxRate
numDiscountRate
They all have a data type of currency, format of percent and I've tried with decimal places being "auto" and set to 6.
I have a bound form, showing these fields, formatted as a percent with 4 decimal places:
State Rate: 0.0000%
County Rate: 6.3000%
City Rate: 1.8000%
Discount Rate: 35.0000%
Then I have an unbound field that calculates the total:
Total Tax Rate:
=([numCountyTaxRate]+[numStateTaxRate]+[numCityTaxRate])
The above is accurate.
Then I have another unbound field to calculate the rate after discount:
Effective Rate: =CCur([numCountyTaxRate]+[numStateTaxRate]+[numCityTaxRate])*CCur(1-[numDiscountRate])
I have tried both with and without Ccur.
So the answer should be
(0 + .063 + .018) * (1 - .35)
.081 * .65 = 0.05265
But on my form, it shows up as 5.2600%
Why isn't it keeping the last 5? It isn't rounding either.
I thought the currency data type (even if formatted as a percent) would be accurate to 15 decimal places.
What am I missing?
Thanks,
/Wendy