Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Integer

Also known as: int, integers

1 min read Updated November 10, 2026

Definition A whole number with no decimal part, used for counting in programs.

What it is

An integer is a number such as 7, 0 or -12, with no fraction. Programming languages store integers separately from decimals because they are faster and exact, though each type has a maximum size.

Why it matters for your business

Using the right number type avoids rounding errors and bugs in prices, stock counts and totals.

Real-world example

A stock system stores the number of bags of cement in the store as an integer, since nobody has half a bag.

Design Corner tip

Ask developers to store money in a way that avoids rounding errors, such as whole cents or shillings.