The ▶Hex Command

hex.png

Command Summary

Converts a number to a base-16 number.

Command Syntax

integer▶Hex

Menu Location

MATH/base

Calculator Compatibility

This command works on all calculators.

Token Size

2 bytex

The ▶Hex command takes an integer and converts it to hexadecimal, including the prefix "0h". Here is an example program.

15›Hex
//returns F
16›Hex
//returns 10
0b10000›Hex
//returns 20

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.