Formatting Numbers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top