How to group digits and remove trailing zeros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SAWULA
    New Member
    • Mar 2010
    • 1

    How to group digits and remove trailing zeros

    I am making a c# calculator, and I want group the digits and remove trailling zeros.

    whan I uesed this code

    Code:
    NumberFormatInfo nFI = new CultureInfo("en-US",false).NumberFormat;
    Decimal int_value = Decimal.Parse(textBox1.Text);
    It displays only two decimal digits. If it is not decimal fraction it dispalys two zeros.
Working...