answersLogoWhite

0

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

15y ago

What else can I help you with?