string.hex
| Syntax |
string.hex (number)
|
| Params |
number is the number to be converted to hexadecimal notation.
|
| Action |
Converts number to hexadecimal (base-16) notation.
|
| Returns |
The resulting string of four or eight hexadecimal digits, preceded by a zero and a lower-case "x" indicating the value is to be evaluated as a hexadecimal number.
|
| Examples |
string.hex (16) » 0x0010
string.hex (10)
string.hex (infinity)
|
| Errors |
Supplying a value which cannot be coerced into a number produces an error.
|
| Notes |
This verb is useful for displaying the value of things as programmers sometimes like or need to deal with them. If hexadecimal notation doesn't make any sense to you and you don't use it, please feel free to ignore this verb!
|