HEX()

HEX(V)

RETURNS A DECIMAL VALUE FROM A HEXADECIMAL VALUE V

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

ACTION

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

SYNTAX: Result=HEX(V)

  • V = string, hexadecimal value

USE

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

ERROR

  • If V is not a correct expression.

EXAMPLE

print hex("F")

print "Result = 15"

SEE ALSO

HEX$()