We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7ed1f commit 3d7c16eCopy full SHA for 3d7c16e
1 file changed
docs/library/hex.md
@@ -0,0 +1,31 @@
1
+# HEX/HEX16/HEX8
2
+
3
+## Syntax
4
5
6
+```basic
7
+string32 = hex(n32)
8
+string16 = hex(n16)
9
+string8 = hex(n8)
10
+```
11
+Where `n32` is a 32-bit ULONG, `n16` is a 16-bit UINTEGER and `n8` is an 8-bit UBYTE.
12
13
+## Description
14
15
+* HEX:
16
+Takes one _32_ bit unsigned integer number and returns an 8 chars str containing the HEX string representation.
17
+* HEX16:
18
+Takes one _16_ bit unsigned integer number and returns a 4 chars str containing the HEX string representation.
19
+* HEX8:
20
+Takes one _8_ bit unsigned integer number and returns a 2 chars str containing the HEX string representation.
21
22
+## Requirements
23
24
+HEX, HEX16 and HEX8 can be included with the following command:
25
26
27
+#include <hex.bas>
28
29
30
+## See also
31
0 commit comments