integer
n. countablen. a whole number that does not have a fraction or a decimal part. It can be positive, negative, or zero.
n. a member of the set of whole numbers, including zero and negative equivalents. Contrasted with fractions and irrational numbers.
The number five is an integer, but five point five is not.
When writing the code, ensure the variable only accepts an integer to avoid errors with decimal points.
In many programming languages, dividing one integer by another will result in a truncated whole number unless the programmer specifies a floating-point output.
Borrowed from Latin integer (“whole”), from Proto-Italic *əntagros (“untouched”). Doublet of entier and entire. Related to English tact, thack, and thwack.
Commonly used in mathematical and computing contexts; often paired with 'positive', 'negative', or 'consecutive'.