Parse decimal from string : decimal parse « Data Type « C# / CSharp Tutorial






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;  
    }  
  }
}
1234.1234








2.34.decimal parse
2.34.1.Parse decimal from string
2.34.2.Decimal parse for currency