number format variable

  • Thread starter Thread starter essamce
  • Start date Start date
E

essamce

Guest
hi,

how to do something like this in c#:

NumberFormatInfo digits = new NumberFormatInfo();
digits.NumberDecimalDigits = 2;
var x = (3.1415d).ToString(digits);


any help will be appreciated.

Continue reading...
 

Similar threads

Back
Top