Hex

From NSB App Studio
Revision as of 12:48, 5 July 2012 by Brendon (talk | contribs) (Created page with "HEX(''number'') '''Description''' HEX returns a string representation of the hexadecimal (base 16) value of a number. The required parameter, ''number'', is any numeric expr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

HEX(number)

Description

HEX returns a string representation of the hexadecimal (base 16) value of a number. The required parameter, number, is any numeric expression. If number is not a whole number, it is rounded to the nearest whole number before being converted.

Example

REM HEX Example
'HEX returns a number as a hexadecimalstring
PRINT "68 in hex:", HEX(68)
PRINT "1 in hex:", HEX(1)
PRINT "2605.45 in hex:", HEX(2605.45)

Output

68 in hex:    44
1 in hex:     1
2605.45 in hex:      A2D

Related Items

OCT