Decimal literals are currently handled separately from binary, octal and hex literals. It should be possible to handle all these together. Furthermore, since I did not really look at those parts of the code, when implementing the optional padding, super and subscripts the behaviour of decimal numbers and other numbers diverged a bit.
Leading zeros and the padded argument given to the command do not change the padding behaviour of non-decimal numbers.
Support for superscript non-decimal numbers? We have all the letters we need in Unicode (which is not the case for subscripts).
Decimal literals are currently handled separately from binary, octal and hex literals. It should be possible to handle all these together. Furthermore, since I did not really look at those parts of the code, when implementing the optional padding, super and subscripts the behaviour of decimal numbers and other numbers diverged a bit.
padded
argument given to the command do not change the padding behaviour of non-decimal numbers.