VBScript Hex Function
Complete VBScript Reference Manual
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
Hex(number)
| Parameters | Description |
|---|---|
| number | Required. Any valid expression.
If the number is: |
Example
Example
The example above produces the following output:
3
5
9
A
B
C
190
1CB
1CC
Try it »
Complete VBScript Reference Manual