Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string s = "5.1";
- double d;
- bool canParse;
- canParse = double.TryParse(s, out d);
- Console.WriteLine(canParse);
- }
- }
- }
Add Comment
Please, Sign In to add comment