integer division

Dividing one whole number by another and keeping only the whole part of the result, so 7 / 2 is 3.

In more detail

Many languages, including Go, C and Java, do this whenever both numbers are integers, so 164 / 200 gives 0. Multiply first, or convert to a floating-point type before dividing, when you need the fraction.

Example

used * 100 / total

Related terms

Taught in

References