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)
 

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