Now I'm trying to set the Sales Tax/VAT (It was called Sales Tax in the book but we're to call it VAT for this website now). With sales tax in the web.config file, it was done using:
<appSettings> <add key="SalesTax" value="0.08"/> </appSettings>
now I modified it a few times to try and get the VAT to work (VAT in the UK is 17.05% just incase anyone doesn't know)
<appSettings> <add key="SalesTax" value="17.05"/> </appSettings>
I first tried it like that and the result when I tested it on the site was:
Quote
VAT (1705%)
which is treated as a whole number instead of a decimal (as in, it's not treated as 17.05)
I'm quite confused since as soon as I turn it back to 0.08, it comes out as 8% but when I try 17.05 it comes out as 1705%. I'm not sure what other code I can put here to help since I'm assuming the problem lies with the code I put above.
Can anyone help with this problem?

New Topic/Question
Reply




MultiQuote





|