How to format a number.

  • Thread starter Thread starter George Ter-Saakov
  • Start date Start date
G

George Ter-Saakov

I need to format a number so it will be at least 2 characters.

Example:
10 --> 10
7 --> 07


How to do that?

Thanks.
George.
 
George said:
I need to format a number so it will be at least 2 characters.

Example:
10 --> 10
7 --> 07

myNumber.ToString("00");

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Back
Top