Skip to content

Commit 5f771f8

Browse files
Update and rename docs/numberFormat.md to docs/reference/buffer/numberFormat.md
1 parent a73b5e7 commit 5f771f8

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

docs/numberFormat.md

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Number Format
2+
The **Number Format** formats the size of a specificed number.
3+
``` sig
4+
Buffer.sizeOfNumberFormat(NumberFormat.Int8LE);
5+
```
6+
7+
The formats for storing the numbers are:
8+
Int8LE: one byte, signed, little endian
9+
UInt8LE: one byte, unsigned, little endian
10+
Int8BE: one byte, signed, big endian
11+
UInt8BE: one byte, unsigned, big endian
12+
Int16LE: two bytes, signed, little endian
13+
UInt16LE: two bytes, unsigned, little endian
14+
Int16BE: two bytes, signed, big endian
15+
UInt16BE: two bytes, unsigned, big endian
16+
Int32LE: four bytes, signed, little endian
17+
Int32BE: four bytes, signed, big endian
18+
19+
## See also
20+
[buffers](https://github.com/DeveloperTryingToCodeLikeOtherOfThem/pxt-hardware-programming-docs/blob/main/docs/buffers.md)

0 commit comments

Comments
 (0)