Integer Definition - TechTerms

HomeTechnical TermsInteger Definition Integer

An integer is a whole number (not a fraction) that can be positive, negative, or zero. Therefore, the numbers 10, 0, -25, and 5,148 are all integers. Unlike floating point numbers, integers cannot have decimal places.

Integers are a commonly used data type in computer programming. For example, whenever a number is being incremented, such as within a "for loop" or "while loop," an integer is used. Integers are also used to determine an item's location within an array.

When two integers are added, subtracted, or multiplied, the result is also an integer. However, when one integer is divided into another, the result may be an integer or a fraction. For example, 6 divided by 3 equals 2, which is an integer, but 6 divided by 4 equals 1.5, which contains a fraction. Decimal numbers may either be rounded or truncated to produce an integer result.

Updated in 2006 by Per C. APA MLA Chicago HTML Link https://techterms.com/definition/integer Copy

quizTest Your Knowledge

Which term refers to education-focused technology?

A E-tech 0% B Edtech 0% C Smartech 0% D Studytech 0% Correct! Incorrect! View the Edtech definition. More Quizzes → Installer | Integrated

Tech Factor

? 3 / 10

Related Terms

  1. Floating Point
  2. Data Type
  3. Loop
  1. Array
  2. Variable
  3. Constant

The Tech Terms Computer Dictionary

The definition of Integer on this page is an original definition written by the authors of TechTerms.com. If you would like to reference this page or cite this definition, please use the green citation bar directly below the definition.

Our goal is to explain computer terminology in a way that is easy to understand. We strive for accuracy and simplicity with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

The Tech Terms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

Subscribe ×

Sign up for the free TechTerms Newsletter

Email (required): First Name: Last Name: How often would you like to receive an email? Daily Weekly (Every Tuesday)

You can unsubscribe or change your frequency setting at any time using the links available in each email.Questions? Please contact us.

Thank You

We just sent you an email to confirm your email address. Once you confirm your address, you will begin to receive the newsletter.

If you have any questions, please contact us.

Ok

Tag » Are Decimal Numbers Integers