How to convert this scientific notation to decimal?
问题 After search in google, using below code still can not be compiled : decimal h = Convert.ToDecimal("2.09550901805872E-05"); decimal h2 = Decimal.Parse( "2.09550901805872E-05", System.Globalization.NumberStyles.AllowExponent); 回答1: You have to add NumberStyles.AllowDecimalPoint too: Decimal.Parse("2.09550901805872E-05", NumberStyles.AllowExponent | NumberStyles.AllowDecimalPoint); MSDN is clear about that: Indicates that the numeric string can be in exponential notation. The AllowExponent flag