DEV Community

Hirokazu Hirono
Hirokazu Hirono

Posted on


Basic Signed Integer Type in Rust

Alt Text

println!("{}", std::i8::MIN); // -128
println!("{}", std::i8::MAX); // 127

Alt Text

println!("{}", std::i16::MIN); // -32768
println!("{}", std::i16::MAX); // 32767

Alt Text

println!("{}", std::i32::MIN); // -2147483648
println!("{}", std::i32::MAX); // 2147483647

Alt Text

println!("{}", std::i64::MIN); // -9223372036854775808
println!("{}", std::i64::MAX); // 9223372036854775807

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git