In particular, zero or 0 is an integer that is neither positive nor negative. An integer is a whole number with no fractional or decimal part.
Integers have no smallest or largest value because for any given integer, there is always a larger and smaller integer. Any integer is either greater than or smaller than any other integer. Consecutive integers are integers that come after each other (as in ).
The sum, difference and product of integers is always an integer.(for example, (12 + 2345 × (67 - 8)) × 9 is an integer). An integer divided by an integer is sometimes not an integer (for example, 1 ÷ 2 = 0.5).
To sum up, an integer is a whole number that has no decimals.
In programming Edit
- Negative numbers have a minus (−) in front of the number. Positive numbers have no sign or a plus (+) sign in front. Zero usually has no sign.
- "Comprehensive List of Algebra Symbols". Math Vault. 2020-03-25. Retrieved 2020-08-11.
- Weisstein, Eric W. "Integer". mathworld.wolfram.com. Retrieved 2020-08-11.