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
 
Back
Top