Integer

From TCS Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

These are some of the integers:

[math]\displaystyle{ {...-4, -3, -2, -1, 0, +1, +2, +3, +4,...}\,\! }[/math]

Zero is also an integer but it is not positive nor negative. "Integer" is another word for "whole". An integer is a rational number with no "fraction", or part. An integer is a decimal number with all zeros after the decimal separator. (For example, the integer 17 is the same as the decimal 17.0 or 17.0000.)

An integer has a next smaller number and a next larger number. There is no smallest integer. There is no largest integer. Each integer is either larger than, equal to, or smaller than any integer. Consecutive integers are integers that come after each other, like [math]\displaystyle{ {3, 4, 5, 6.}\,\! }[/math]

The sum of integers is an integer. The difference between integers is an integer. The product of integers is an integer. (For example, (12 + 2345 x (67 - 8) ) x 9 is an integer.) An integer divided by an integer is sometimes not an integer. (For example, 123 / 45 is not an integer.)

[math]\displaystyle{ \mathbf{Z} }[/math] or [math]\displaystyle{ \mathbb{Z} }[/math] is the name of the set of integers. ([math]\displaystyle{ \mathbf{Z} }[/math], +, 0) is an abelian group.

The number of integers is infinite. The cardinal number of [math]\displaystyle{ \mathbf{Z} }[/math] is [math]\displaystyle{ \aleph_0 }[/math]. The ordinal number of [math]\displaystyle{ \mathbf{Z} }[/math] is [math]\displaystyle{ ^*\omega + \omega }[/math].

To sum up, an integer is a whole number that has no decimals.

In programming

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

Notes

  1. 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.


Template:Math-stub