VBScript Hex Function | Novice Tutorial
Novice Tutorial -- Learning is not just technology, but also dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
VBScript Tutorial
VB TutorialVB UsageVB VariablesVB ProceduresVB ConditionalsVB LoopsVB SummaryVB ExamplesVB FunctionsVB Keywords
VBScript Hex Function
Complete VBScript Reference Manual
The Hex function returns a string representing the hexadecimal value of a specified number.
Note: If the parameter is not an integer, it is rounded to the nearest integer before operation.
Syntax
Hex(number)
| Parameter | Description |
|---|---|
| number | Required. Any valid expression. If the number is: * Null - then the Hex function returns Null. * Empty - then the Hex function returns zero (0). * Any other number - then the Hex function returns 8 hexadecimal characters. |
Example
Example
document.write(Hex(3) & "") document.write(Hex(5) & "
") document.write(Hex(9) & "
") document.write(Hex(10) & "
") document.write(Hex(11) & "
") document.write(Hex(12) & "
") document.write(Hex(400) & "
") document.write(Hex(459) & "
") document.write(Hex(460) & "
")
The output of the above example:
3 5 9 A B C 190 1CB 1CC
Complete VBScript Reference Manual
AI is thinking...
Share My Notes
Write notes...
Image URL
Image Description
Share Notes
- Nickname Nickname (required)
- Email Email (required)
- Reference URL Reference URL
YouTip