I want to place text over arrows. The obvious choice is to use the amsmath command \xrightarrow{#1}
However, sometimes the text above may be a single digit:
%Example 1
\xrightarrow{1}
other times the text is slightly longer:
%Example 2
\xrightarrow{1000}
The problem I have is that the length of the arrow is scaled to the length of the text. So the arrow in example 1 is much shorter than the arrow in example 2.
Is there a way of making the arrows the same length? Should I use a different command altogether?