HexToDec (Convert Hexadecimal String)

The HexToDec function is used to convert a hexadecimal string to a float or integer.

Syntax

Variable = HexToDec (Expression)

Remarks

The HexToDec function can be used to return the decimal representation of Expression into a variable.

Conversion from a hexadecimal string to a decimal value can also be accomplished by prefacing any hexadecimal string with &H.

Parameter

Expression

The expression on which to perform the Decimal to Hex or Hex to Decimal conversion.

Type: String (for HextoDec) or Decimal Value (for Hex)