Saturday, 17 August 2013

How to add trailing zeros to an integer in python? or How to add ZEROS after any integer in python?

How to add trailing zeros to an integer in python? or How to add ZEROS
after any integer in python?

I'm without clues on how to do this in Python. The problem is the
following: I have for example an orders numbers like:
1
2
...
10
The output should be
1000
2000
...
10000
That is I want to add 3 extra zeros after the integer

No comments:

Post a Comment