Issue
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);
Solution
Decimal h2 = 0;
Decimal.TryParse("2.005E01", out h2);
Answered By - ControlPoly Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.