toHex()
Table of Contents
Overview
The toHex() function takes a number as an argument, and returns a string representing the hexadecimal value of that number.
Return Type
- Text
Syntax
(OR)
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | TEXT |
<number> | The number whose hexadecimal value will be returned. | NUMBER |
Examples
hexValue = number.toHex(); // returns 64