integer to string

Hi all,
is there an easy way to convert integer to string in bash?
I have numbers like 1, 2, ..., 112, ...
and I would like to get
001 002 003 004 ...

Thank you,
Sarah

Yes, printf. Eg:

A=5
echo $A
A=$( printf '%04d' $A )
echo $A

Should be:

A=$( printf '%03d' $A )

Right. I should try and count until I've had my 4th coffee :wink:

thank you all