Formatting Numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some questions about Numberformatting
What is the best way to format a number that will be shown to a user? is it

CultureInfo cultureInfo = CultureInfo.CurrentCulture
int.Parse(summaryObjectArray[0].ToString()).ToString("N",cultureInfo)


how can i assign less/more decimal digits to a number

i have 1'000'000.00 //standard format i think..

I want 1'000'000 //would be nice for an int that is getting converted..

thanks for your hel
Plunaldo
 
Back
Top