Skip to content

Commit afdd042

Browse files
MrKOSMOSboriel
authored andcommitted
Update hex.md
Additions for consistency and clarity
1 parent 3d7c16e commit afdd042

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

docs/library/hex.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55

66
```basic
7-
string32 = hex(n32)
8-
string16 = hex(n16)
9-
string8 = hex(n8)
7+
A$ = hex(n32)
8+
B$ = hex(n16)
9+
C$ = hex(n8)
1010
```
1111
Where `n32` is a 32-bit ULONG, `n16` is a 16-bit UINTEGER and `n8` is an 8-bit UBYTE.
1212

@@ -27,5 +27,11 @@ HEX, HEX16 and HEX8 can be included with the following command:
2727
#include <hex.bas>
2828
```
2929

30+
## Remarks
31+
32+
* This function is not available in Sinclair BASIC.
33+
* Avoid recursive / multiple inclusion when calling this function.
34+
* HEX16 ad HEX8 both call HEX to perform conversion, but differ in the size of the string they return.
35+
3036
## See also
3137

0 commit comments

Comments
 (0)