If you're going to use leading zero, it becomes a string, not a number anymore.
So use the StringLeftPad java action from CommunityCommons.
Or build the string manually. Assuming the number can't be empty or less than 0:
(if $value >= 10 then '' else '0') + toString($value)