I want to format all numbers from 1 to 50 so that they are all 2 digits long.
desiredOutput={01,02,...,49,50}
Digging through the documentation the NumberForm function looked promising.
After trying many options and parameters I so far cannot achieve my desired output.
Attempt:
format = NumberForm[#, 1, NumberPadding -> {"0", ""}] &;
format/@Range[50]
I notice that NumberForm can "adapt" to integers of different lengths for numbers of length 3.


IntegerString[#, 10, 2] &would be somewhat more direct. Note that both of these methods will truncate integers larger than 2 digits. – LegionMammal978 Jan 21 '20 at 00:46