Create decimal number from double
using System; class MainClass { public static void Main( ) { try { decimal decimalNum = new decimal( 1.23456789E+5); Console.WriteLine( "{0,31}", decimalNum ); } catch( Exception ex ) { Console.WriteLine( ex ); } } }