Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- style = NumberStyles.Number;
- culture = CultureInfo.CreateSpecificCulture("en-GB");
- if (Double.TryParse(value, style, culture, out number))
- {
- Console.WriteLine("Converted '{0}' to {1}.", value, number);
- }
- else
- {
- Console.WriteLine("Unable to convert '{0}'.", value);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement