After search in google, using below code still can not be compiled:
decimal h = Convert.ToDecimal(\"2.09550901805872E-05\");
decimal h2 = Decima
Since decimal separator ("." in your string) can vary from culture to culture
it's safier to use InvariantCulture. Do not forget to allow this decimal
separator (NumberStyles.Float)
decimal h = Decimal.Parse(
"2.09550901805872E-05",
NumberStyles.Float | NumberStyles.AllowExponent,
CultureInfo.InvariantCulture);
Perharps, more convenient code is when we use NumberStyles.Any:
decimal h = Decimal.Parse(
"2.09550901805872E-05",
NumberStyles.Any,
CultureInfo.InvariantCulture);