Integer Division
If both operands of a division expression are integers, you get an integer answer. The fractional portion is thrown away.
Examples : 17 / 5 = 3
4 / 3 = 1
35 / 9 = 3
Division where one operand is a floating point number will produce a floating point answer.
Previous slide
Next slide
Back to first slide
View graphic version