Hi guyz,
could anyone please tell me how can I convert an integer variable like 1 to a string variable but with this format 00X where x is the number, I mean like let's say I want to have a string with fixed size (let's say 3) and I want to convert an int variable into that string but if the int variable is less than 100 I want it to have 0s before that so 1 -> 001 and 10->010
Regards,
could anyone please tell me how can I convert an integer variable like 1 to a string variable but with this format 00X where x is the number, I mean like let's say I want to have a string with fixed size (let's say 3) and I want to convert an int variable into that string but if the int variable is less than 100 I want it to have 0s before that so 1 -> 001 and 10->010
Regards,
Comment