Problem with ToString("C")
Posted on 2011-05-06
Im having a weird problem with this method on an asp.net web page using C#. On my local system which is in the UK I use ToString("C")to get the currency of the double value -12294403.753546 which gives me
-£12,294,403.75 which is correct.
Now when I do the same thing on the server, which is exactly the same source code and also in the UK then it gives ($12,294,403.75)
I have no idea why its putting it in brackets, using a dollar sign, and also it doesnt give a negative result when it was given a negative number! has anyone else had this problem??
Maybe theres a better way of displaying this instead of using ToString("C")?
Hope you can help.