Parse Double with Exception handling
using System;
class MainClass {
public static void Main() {
try {
double d = Double.Parse("1234.1234");
} catch(FormatException exc) {
Console.WriteLine(exc.Message);
return;
}
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
|