Hex: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 25: Line 25:
== Related Items ==
== Related Items ==


[[oct|OCT]]
[[oct|Oct]]


[[Category:Language Reference]]
[[Category:Language Reference]]

Revision as of 01:04, 24 August 2012

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