To find the length \( AB \) where \( A = 13 \) and \( B = 34 \), we use the formula for the distance between two points on a number line:
\[ AB = |A - B| \]
This can be calculated as:
\[ AB = |13 - 34| = |-21| = 21 \]
Thus, the length of \( AB \) is \( 21 \).