Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Globalization;
- //...
- public static double ToDouble(string Number)
- {
- Number = Number.Replace(',', '.');
- NumberFormatInfo format = new NumberFormatInfo();
- format.NumberDecimalSeparator = ".";
- return Convert.ToDouble(Number, format);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement