Integer

Why Trust Techopedia

What Does Integer Mean?

An integer, in the context of computer programming, is a data type used to represent real numbers that do not have fractional values.

Advertisements

Different types of integer data types are stored on machines in different ways. For example, a short integer in many common programming languages is limited to a range of between 32,767 and -32,768. These limited ranges reveal the relationship between a numerical value as interpreted by humans, and how these values are stored in computer memory.

Techopedia Explains Integer

The use of integers as variables supports programming in various ways. For instance, a common strategy is to create an integer variable and store some value in it that will influence computations or calculations made within the program. Examples include primitive instances of code for counters, amortization schedules, calendars, etc.

Another core use of an integer data type is represented in code loops such as “while” statements. For example, a programmer can set up an integer value named “int” where int=1. Code can include the command “int = int + 1”, which will increase the value incrementally. The programmer can add additional commands for outcomes where the value reaches a certain critical point.

Advertisements

Related Terms

Margaret Rouse
Technology Expert
Margaret Rouse
Technology Expert

Margaret é uma premiada redatora e professora conhecida por sua habilidade de explicar assuntos técnicos complexos para um público empresarial não técnico. Nos últimos vinte anos, suas definições de TI foram publicadas pela Que em uma enciclopédia de termos tecnológicos e citadas em artigos do New York Times, Time Magazine, USA Today, ZDNet, PC Magazine e Discovery Magazine. Ela ingressou na Techopedia em 2011. A ideia de Margaret de um dia divertido é ajudar os profissionais de TI e de negócios a aprenderem a falar os idiomas altamente especializados uns dos outros.