number formatting in ToString()?

  • Thread starter Thread starter ORC
  • Start date Start date
O

ORC

The normal procedure for formatting numbers when converting to strings is
e.g. ToString("0.##"); but what if I want to change the viewed number of
decimals digits programmatically during runtime?

Thanks,
Ole
 
Why not make up the string programmatically?
str = "F2";
str = "F" + someInt.ToString();
ToString(str);


Cheers
Daniel
 
well - great idea! Thanks!

Ole

Daniel Moth said:
Why not make up the string programmatically?
str = "F2";
str = "F" + someInt.ToString();
ToString(str);


Cheers
Daniel
 
You can also add numbers programmatically and do many other amazing things
 

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

Back
Top