Print variables in hexadecimal or decimal format

Solution 1:

Sure it is. Try these:

# Hexadecimal
p/x variable

# Binary
p/t variable

See output formats.