For reference sake, if you do not have control over the generation of the numeric values, you can do padding with:
% value=314
% echo ${(l:10::0:)value}
0000000314
% echo $value
314
For reference sake, if you do not have control over the generation of the numeric values, you can do padding with:
% value=314
% echo ${(l:10::0:)value}
0000000314
% echo $value
314