1. Computing & Technology

Discuss in my forum

Definition of Int

By , About.com Guide

Definition: Int is a fundamental (i.e. built into the compiler) type used to define numeric variables holding whole numbers.

Int is short for integer. As only whole numbers can be stored in an Int variable. 7, 4908 or -6575 are ok. 5.6 is not. Numbers with fractional parts requires a float type variable.

The size of number that can be stored in an int depends on the hardware. Usually, but not always it is 32 bits so the range of values is from -2,147,483,648 to 2,147,483,647.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Loop variables must always be declared as int.

©2012 About.com. All rights reserved.

A part of The New York Times Company.