diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 15:33:47 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 15:33:47 -0400 |
| commit | e422079fcced744e3a6247aeb12a09a658989072 (patch) | |
| tree | 393d5e52ba67dcc822ccfa9a812198edda5e735d /docs/integers.md | |
| parent | 259c7efcf8c3808d8151d8e15f1167ad2b6f2ca7 (diff) | |
Add a Byte datatype
Diffstat (limited to 'docs/integers.md')
| -rw-r--r-- | docs/integers.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/integers.md b/docs/integers.md index 50ecd034..1b25bcf0 100644 --- a/docs/integers.md +++ b/docs/integers.md @@ -8,9 +8,9 @@ Tomo has five types of integers: the GNU MP library. These integers are fast for small numbers and guaranteed to always be correct and never overflow. - `Int8`/`Int16`/`Int32`/`Int64`: Fixed-size integers that take up `N` bits. - These integers must be manually specified with their suffix (e.g. `5_i64`) - and are subject to overflowing. If an overflow occurs, a runtime error will - be raised. + These integers must be manually specified with their bits in square brackets + (e.g. `5[64]`) and are subject to overflowing. If an overflow occurs, a + runtime error will be raised. Conversion between integer types can be done by calling the target type as a function: `Int32(x)`. For fixed-width types, the conversion function also |
