Numeric data: integer
A whole number with no decimal part, positive or negative, used for counts such as the number of students in a class (e.g. 25, 0 or -3).
Understanding Numeric data: integer in VCE Data Analysis
What it does: Counts are whole numbers, so an integer data type suits them. You cannot have part of a student. Counts of whole things are integers. An average height needs decimal places, so it is a floating point number. The number of laptops is a count of whole items, so an integer fits. Boolean only stores true or false. Integers can be negative as well as positive, as long as there is no decimal part.
Common mistakes: An integer has no decimal part, and you cannot have half a student. The line should be students ← 28. Goals are counted in whole numbers, so the variable should be declared AS INTEGER. FLOAT is for numbers with decimal places.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 15–24) and word search (Modules 3–24).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
integerFill in the Blanks
Spot the Error
Student with a class code? Join your class →