DIV function
Returns the whole-number quotient of a divided by b, discarding the fractional part. For example, DIV(10, 3) returns 3. Both a and b are integers.
Understanding DIV function in IGCSE Computer Science Paper 2
What it does: DIV gives the whole number of times 60 fits into Minutes, ignoring any leftover minutes. DIV discards the fractional part, so only complete packs of 6 are counted. DIV returns the quotient. The remainder is what MOD returns. DIV(30, 4) gives 7 whole groups. The / operator gives 7.5, which keeps the fractional part. DIV works on whole numbers, for example DIV(10, 3). Both a and b are integers. 10 divided by 3 is 3.33..., and DIV keeps only the whole number 3. 17 / 5 = 3.4, and DIV discards the .4 so the result is 3.
Common mistakes: MOD gives the remainder (2), not the whole-number quotient. To find how many whole groups of 5 fit into 17, use DIV(Total, 5), which returns 3. Left should hold the minutes remaining after the whole hours are taken away. That needs MOD(Minutes, 60), which gives 15. DIV would just repeat the 2 hours.
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 27–36) and word search (Modules 27–46).
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
DIV(a, b)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →