base16 Algorithm

Unlike the common manner of representing numbers with ten symbols, it uses sixteen distinct symbols, most often the symbols" 0"–"9" to represent values zero to nine, and" A"–"F" (or alternatively" a"–"f") to represent values ten to fifteen. In programming, a number of notations are used to support hexadecimal representation, normally involve a prefix or suffix.

base16 source code, pseudocode and analysis