Easy Tutorial
❮ Func Isobject Func Int ❯

VBScript Hex Function



The Hex function returns a string representing the hexadecimal value of a specified number.

Note: If the argument is not an integer, it is rounded to the nearest integer before the operation.

Syntax

Parameter Description
number Required. Any valid expression. If the number is: Null - then the Hex function returns Null.<br> Empty - then the Hex function returns zero (0).<br> Any other number - then the Hex function returns 8 hexadecimal characters.

Example

Example

The above example output:


❮ Func Isobject Func Int ❯