Integer

From Higher Computing Science
Revision as of 11:03, 19 June 2015 by Mrliddle (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article is unfinished. Please consider joining and adding to this article. Read about Page layout beforehand.

Key points

  • An integer is a whole number stored as a positive binary number, or a two’s complement binary number (which allows storage of positive and negative numbers)

Information

An integer is a whole number. An integer can be positive or negative. Computers use binary to store integers. The maximum range of numbers that an integer can store depends on the number of bits the integer can use. In many languages, a programmer can choose to represent a number using INT32 or INT64 - 32 bits or 64 bits for each integer. For signed bit integers, the biggest possible number with 32 bits is 2,147,483,647, and for 64 bits it is 9,223,372,036,854,775,807.


Videos

Further information

Test yourself

Teaching resources