Hi Experts,
Say "1000000" is a string. Now I wanna print it as 1000-000. I mean before the last three digit a hyphen(-) will be added. If it is less than three digit then required number of zero(0) would be added before to form it three digit.
For more elaboration, I require the following,
0----------------------------> -000
1----------------------------> -001
10--------------------------> -010
100------------------------> -100
1000-----------------------> 1-000
10000---------------------> 10-000
100000-------------------> 100-000
1000000-----------------> 1000-000
10000000---------------> 10000-000
100000000-------------> 100000-000
1000000000-----------> 1000000-000
10000000000---------> 10000000-000
Please help me to do it.