In this episode, we will discuss the primary data types in rust and in the next episode we will end our discussion about variables by explaining the compound data types (Arrays and Tuples)
The formula that will give you the range of each type :
for the signed variables the range is from -(2^n-1)-1 to (2^n-1)-1
so i8 can store from 2^7 to 2^7-1 which is from -128 to 127
for the unsigned, the variable will store from 0 to (2^n)-1
so u8 can store from 0 to 255