Integer

From testwiki
Revision as of 04:47, 18 December 2024 by imported>ChenzwBot (Reverted edit by 2401:4900:36C1:9AB:680:8240:8BE4:D7E9 (talk) to last version by Kamenûk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In mathematics, integers are whole numbers (natural numbers, their negatives, and zero).[1] Integers can also be shown on a number line like this:

...4,3,2,1,0,+1,+2,+3,+4,...

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 1,2,3,4).

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

𝐙 or is the name of the set of integers, and + is the set of positive integers.[2][3] (𝐙, +, 0) is an abelian group.

The number of integers is infinite. The cardinal number of 𝐙 is 0. The ordinal number of 𝐙 is *ω+ω.

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

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.
  2. Template:Cite web
  3. Template:Cite web

Template:Navbox Template:Math-stub