convert/hex - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Conversion : convert/hex

convert/hex

 Calling Sequence convert(n, 'hex') convert(n, 'hexadecimal')

Parameters

 n - nonnegint; number to be converted

Description

 • The convert(n, 'hex') command converts the non-negative integer n to a symbol representing the corresponding hexadecimal number. The convert(n, 'hexadecimal`) command is synonymous with convert(n, 'hex').
 • The returned value is a symbol consisting of the characters 0 through 9 and A through F.

Examples

 > $\mathrm{convert}\left(123456,\mathrm{hex}\right)$
 ${\mathrm{1E240}}$ (1)
 > $\mathrm{convert}\left(100,\mathrm{hexadecimal}\right)$
 ${\mathrm{64}}$ (2)