From e422079fcced744e3a6247aeb12a09a658989072 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 15:33:47 -0400 Subject: Add a Byte datatype --- docs/integers.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/integers.md') 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 -- cgit v1.2.3