Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
Int (short for integer) is a data type that represents whole numbers without any decimal points. It includes both positive and negative numbers, as well as zero.
Arithmetic operators are used to perform mathematical operations on integers and other numeric data types, such as addition (+), subtraction (-), multiplication (*), and division (/).
Casting: Casting refers to converting one data type into another. For example, casting an int to a float would change the representation of the number from a whole number to a decimal value.