Skip to main content

Tohex

ToHex (Function)​

Format

ToHex ( numeric_expression )

returns string_expression

Description

This function converts the integer part of the number passed into a Hexadecimal (base 16) string. Hexadecimal represents 16 different values per digit and the symbols 0-9 and a-f are used.

Example

For t = 1 to 10
print ToHex(t)
next t

Results in

1
2
3
4
5
6
7
8
9
a

See Also​

FromBinary, FromHex, FromOctal, FromRadix,ToBinary, ToHex, ToOctal, ToRadix

History​

0.9.9.45New To Version