What is the best way to format Int32 numbers?
Posted
by Mendy
on Stack Overflow
See other posts from Stack Overflow
or by Mendy
Published on 2010-04-07T07:37:50Z
Indexed on
2010/04/07
7:43 UTC
Read the original article
Hit count: 220
What is the best way to get formatted Int32 numbers?
Let say I have this o
function:
string o(int x);
This is the value that o
need to return according to x
x = 0 => o = 00
x = 1 => o = 01
x = 5 => o = 05
x = 10 => o = 10
x = 31 => o = 31
x = 106 => o = 106
© Stack Overflow or respective owner