Yes you read that right, Im looking for a way of incrementing integer's precision before the decimal point. The reason is irrelevant and would be long to explain. Specifically, I want to increment it to the hundreds, for instance:
- 1 --> 001
- 7 --> 007
- 27 --> 027
- 358 --> 358
...and so on and so forth.
Im aware there's a way of just programing this, but I presume there's a way of doing this automatically, am I right? Just like the "setprecision()" command, but the way around as you can see. I've looked up for this a long time but all previous questions just regard the precision after the decimal point.
Thanks in advance to anyone who can help me in this weird request.