Convert Exponential value to decimal


Convert Exponential value to decimal in C#

Description


This code demonstrate how to convert exponential value to decimal in C#.


decimal dec = decimal.Parse("1.32583e-0010", System.Globalization.NumberStyles.Any);
textBox1.Text = dec.ToString ();


Comments



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: