CurrentCulture.NumberFormat.CurrencyDecimalSeparator
I was testing a website and i had my CurrentCulture set to French which meant the value of 0.175 for the VAT rate was no longer valid as in France the currencyDecimalSeperator is ',' not '.'
Because our config entries will all be in English i created a NumberFormatInfo object which could then be passed into the Convert method call and it all works fine.
No comments:
Post a Comment