diff options
| author | Shane Kennedy <shane.kennedy19@gmail.com> | 2022-08-22 12:57:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-22 13:57:51 +0300 |
| commit | cd5a9ba1f4e38292d8e8c122c2e8ce4d3879367f (patch) | |
| tree | 2773c02163a47e70e1de1a2e282f467fc5159613 /doc/langref.html.in | |
| parent | 24d718e7ebcf9b13044ead80510c6c703eebd929 (diff) | |
| download | zig-cd5a9ba1f4e38292d8e8c122c2e8ce4d3879367f.tar.gz zig-cd5a9ba1f4e38292d8e8c122c2e8ce4d3879367f.zip | |
lagnref: add signed integer repr documentation
Closes #11103
Diffstat (limited to 'doc/langref.html.in')
| -rw-r--r-- | doc/langref.html.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 9247d3bc43..98db21eebf 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1521,7 +1521,8 @@ fn divide(a: i32, b: i32) i32 { Zig supports arbitrary bit-width integers, referenced by using an identifier of <code>i</code> or <code>u</code> followed by digits. For example, the identifier {#syntax#}i7{#endsyntax#} refers to a signed 7-bit integer. The maximum allowed bit-width of an - integer type is {#syntax#}65535{#endsyntax#}. + integer type is {#syntax#}65535{#endsyntax#}. For signed integer types, Zig uses a + <a href="https://en.wikipedia.org/wiki/Two's_complement">two's complement</a> representation. </p> {#see_also|Wrapping Operations#} {#header_close#} |
