Skip to content

Instantly share code, notes, and snippets.

@kosinix
Last active December 18, 2016 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosinix/40174e83f47d90daf886f91e7d7d7f64 to your computer and use it in GitHub Desktop.
Save kosinix/40174e83f47d90daf886f91e7d7d7f64 to your computer and use it in GitHub Desktop.
Rust primitive types range on 64 bit system
type min max
i8 -128 127
i16 -32768 32767
i32 -2147483648 2147483647
i64 -9223372036854775808 9223372036854775807
u8 0 255
u16 0 65535
u32 0 4294967295
u64 0 18446744073709551615
isize -9223372036854775808 9223372036854775807
usize 0 18446744073709551615
f32 -340282350000000000000000000000000000000 340282350000000000000000000000000000000
type min max
f64 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment