In Rust, we have various data types that represent numbers, truth values, characters, and more. In this lesson, we will focus on i32
, f32
, bool
, char
, and String
.
The i32
data type represents 32-bit integers. The maximum value an i32
can store is 2147483647
, or , and the minimum is , or . Here's an example of :
