HEX$ Function Details Syntax HEX$(expression) The argument expression is rounded to an integer or, if the expression is outside the integer range, a long integer before the HEX$ function evaluates it.