en:tohex [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:tohex

## ToHex (Function)

Format

ToHex ( numeric_expr )

returns string_value

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.45 | New To Version

en/tohex.txt · Last modified: 2014/02/09 20:08 by admin