Last active
October 2, 2024 05:22
-
-
Save thatisuday/e6da6a4328700537ef348bf8ddcfeb1e to your computer and use it in GitHub Desktop.
Unsigned Integer Types in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data Type | Bit Size | Min Value | Max Value | |
---|---|---|---|---|
i8 | 8 | -128 | 127 | |
i16 | 16 | -32_768 | 32_767 | |
i32 | 32 | -2_147_483_648 | 2_147_483_647 | |
i64 | 64 | -9_223_372_036_854_775_808 | 9_223_372_036_854_775_807 | |
i128 | 128 | -170_141_183_460_469_231_731_687_303_715_884_105_728 | 170_141_183_460_469_231_731_687_303_715_884_105_727 | |
isize | Platform-dependent (32 or 64 bits) | Depends on architecture | Depends on architecture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment