Dear Stata user, Suppose, I have a varibale named "price", which ranges from the 3291 (4 digits) to 15906 (5 digits). Now, I want to convert all observation in to five digits without changing the real value of observations, so i want to add one zero in left side of a observation if that observation is 4 digits. I have used the Stata data for example, so, please consider the following code to get the data,

sysuse auto.dta
sum price
sum price

Variable Obs Mean Std. Dev. Min Max

price 74 6165.257 2949.496 3291 15906