I get data from a sensor in int type but the data range from 0 to 999. I need a simple way for the var to always be the same length. Like if I get 123 I don't need to change it but if it's 43 I need it to be 043. Is there a simple way to do that?
Thanks.