Is there a macro for formatting numbers in programming style 0x hex notation, e.g. instead of -1155484576 have 0xbb20b460. I would like to embed these numbers in a math mode context.
E.g. if I just type
$\langle 0xbb20b460, 0xd4d95138, 0x3d93cb7a \rangle$ the numbers aren't properly displayed.
\text{}around them (amstextoramsmathpackages). Also, since the notation0xis used in programming, perhaps you could also use a monospaced font. Use\texttt{}in this case.\textttis actually not that bad, looks ok.\mathtt, so not to risk the font comes out italic in an italic context.