Option :base for inspect/2 supports :binary, :octal, :decimal, :hex. Includes tests and documentation.