Hi,
I have an application that runs on an English-US ASP.NET server (English installation of windows server and .NET Framework). I set the globalization settings to :
<globalization culture="auto" uiCulture="auto" responseEncoding="utf-8"/>
which works fine for most of the application. However, I have to deal with money transactions in that application and I need to provide the numbers in the 0.00 format (not 0,00). Most of our users use the application from a culture that uses 0,00.
I found out that even when using Decimal.ToString("0.00")
the decimals were still being printed as 0,00 on french browsers.
What's the correct way of dealing with that issuue?
Should I change the current culture for the function where I need to deal with numbers to set it to EN-US for the time being?
Will I always get the right format if I use Decimal.ToString("0.00", NumberFormatInfo.InvariantInfo)
?
Thanks!