HEX$()

HEX$(V)

RETURNS A HEXADECIMAL VALUE FROM A DECIMAL VALUE V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function HEX$(V) returns the hexadecimal value of V. V is expressed in decimal representation.

SYNTAX: Result$=HEX$(V)

  • V = integer.
  • Result$ is a string.

USE

  • The function HEX$() is used to know the hexadecimal value from a decimal value

ERROR

  • If V is not a correct expression.

EXAMPLE

print hex$(15)

print "Result = F"

SEE ALSO

HEX()