answersLogoWhite

0


Best Answer

An integral data type is a fundamental scalar object in the host's architecture, usually 1, 2, 4, or 8 bytes in size. It represents a binary value, a series of bits, that represent integers with various ranges. It can be signed, allowing positive and negative values, or it can be unsigned, allowing only positive values. In most (or all ??) modern computers, the signed format is what we call two's-complement notation. In two's-complement notation, hardware binary adders generate the same bit pattern no matter what your signed/unsigned convention is - the only difference is in how you interpret the result, and in the meaning of the carry and overflow flag(s). Selection of signedness and size depends on what you need to do. Unsigned Ranges by Number of Bytes: 1: 0 to 255

2: 0 to 65,535

4: 0 to 4,294,967,295

8: 0 to 18,446,744,073,709,551,615 Signed Ranges by Number of Bytes: 1: -128 to +127

2: -32,768 to +32,767

4: -2,147,483,648 to +2,147,483,647

8: -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Integer data type associated with a variable enables you to store integer values in them. The range of the value is machine dependent. In most modern machines, int values have a storage capacity of 4 bytes allowing the range to be from -231+1to +231-1.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

It is used to declare that something will use only integer (whole number) values.

  • an integer variable stores only integer values
  • an integer function returns only integer values
  • an integer parameter to a function or procedure can pass only integer values
  • etc.
This answer is:
User Avatar

User Avatar

Wiki User

11y ago

it is a type of numeric constant which doesn't contain any fractional part

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the purpose of data type integer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What data type is age?

integer data type


What is the data type int?

Data-type (short for integer).


What is data and define its type?

Data is information. Data type defines the type of data - integer, character etc


What is the default data type?

integer


What is java's keyword for the integer data type?

"int" is the keyword for integer


How much memory is required to store an integer data type?

integer data type consumes memory of 4 bytes or 32 bits


What type of data is acceptable for arrays index?

The details depend on the language, but the index of an array is usually an integer data type. Anything that is compatible with an integer can be used.


Specific example of integer data type?

1


Abstract data type that store a whole numbers?

All data types can be used to store a whole number, even the data types that can store a decimal number.


What does Data types?

Data type means it tells the compiler the variable belongs to integer .character.floating.l


What typeof data type would be best to store an age?

integer


What is a valid variable data type?

1. If its natural or integer numbers- Integer(Int) data type. 2. If it consists of decimal or fraction part- Double or float data type. 3. If it has a single letter or sign- Character(Char) data type. 4. If its got many words(alpha-numerical)- String data type. 5. If the result has to be "true" or "false"- Boolean data type.