Numeric Types: Integers and Floats

This lesson will teach you about numeric data types in Rust, i.e., integers and floats.


Variables of Integer data type hold whole number values. There are two subtypes of integer data type in Rust, based on the number of bits occupied by a variable in memory.

Fixed Size Types

The fixed integer types have a specific number of bits in their notation. This notation is a combination of a letter and a number. The former denotes the category of the integer, whether it is, unsigned or signed, and the latter denotes the size of an integer, i.e., 8, 16, 32, 64.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy