how does one limit the number of digits displayed in a negative hexadecimal
number?

e.g., instead of the default 10 digits, somethimes i'd like to have only 3
digits, other times 4.