Integer

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Integers are the whole numbers and their negatives. [1]

These are some of the integers:

{...-4, -3, -2, -1, 0, +1, +2, +3, +4,...}\,\!

Integers consist of all of the numbers that have no decimal expansion. In other words, they have only zeros after their decimal, which we normally choose not to write. 0 is also an integer, even though it has no positive nor negative signs. Integers are a countable subset of the rational numbers and real numbers.

Consecutive integers are integers that come after each other, like {3, 4, 5, 6.}\,\!

In programming[change | change source]

In some programming languages, like C, there are types called "int" or "integer." Integers can also be shown on a number line

Notes[change | change source]

  1. Negative numbers have a minus (−) in front of the number.