Hi
I have an application that could be used all around the world. Obviously different cultures have different methods of writing decimals.
I am importing System.Globalisation but it seems if the code has something like Convert.ToDecimal("1.2") it fails if the user's machine is set up to, say, a comma format.
I'm not sure why since I'd have thought it would convert to whatever the user's machine thinks a decimal is.
How do I deal with this in the most effective way?
Should I use Double? Does that eliminate any cultural problems? Or do I need a different way to force an input to a decimal?
Thanks