Functions

hex

Supported By

Syntax

[the] hex of factor

hex ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put hex(6789) into steve

Description

The hex function converts a real or complex number in decimal, or base ten, to the same number in hexadecimal, or base sixteen. For example, hex(8984) gives "2318".

See Also

bc, bin, oct