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