I have an ASP.net MVC website which is displaying numbers. Can I somehow determine if the user’s computer is configured to use a comma or a point as a decimal separator?
I could check the different languages in Request.UserLanguages but that would not be very accurate for determining the decimal separator.
You can see here how to get a
CultureInfofrom the browser language – this will get youa
CultureInfoobject that you can use like this:See
CultureInfoandNumberFormatInfo.