samedi 7 mars 2015

Adding zeros in the number with lower digits



i have a function that generates 2 random numbers and determine the number with the highest number of digits. What i want is to add zeros in the number with lower digits to make them equal. how can i do that? for example First number: 340 Second Number: 3


i want the result to be 340 and 003.




Aucun commentaire:

Enregistrer un commentaire