To get the 2s complement, change all 1 bits to 0s and all 0 bits to 1s, and add 1 to the result.
So the 2s complement of the 8-bit binary number 10001011 is the binary integer 01110101.
If you want that in decimal, then remember that each place value column is twice the value of the place value column to its right, and the rightmost place value column for an integer is 1.
Thus 01110101 in decimal is 64 + 32 + 16 + 4 + 1 = 117
(And 10001011 as a signed 8-bit binary integer represents the decimal integer -117.)
To get the 2's complement of a binary number:* Flip all bits, i.e., change 0's to 1's and 1's to 0's.
* Add 1 to the result.
Explain how an integer can be represented using BCD?
NO, it is a decimal that can be represented as the fraction 1/4 but can never be written as n integer.
negative
7
A rational number is one that can be represented as an integer or a fraction with an integer over an integer. An irrational number cannot be represented using integers. Examples of rational numbers: 2, 100, 1/2, 3/7, 22/7 Examples of irrational numbers: π, e, √2
an integer can be represented as any letter of the alphabet
Explain how an integer can be represented using BCD?
Yes it can be. (the number 3 is an integer).
-128 to 127, in two's-complement.
-128 to 127, in two's-complement.
5
The only integer equivalent to 2532 is 2532.
There is no single format. Different architectures and platforms store data in different ways. An integer's representation depends on its length (in bytes), the byte-order (little-endian or big-endian) and whether they are signed or unsigned. If signed, they may be represented using either ones-complement or (more commonly) twos-complement. Most programming languages provide several integer types, however the actual representation of each of these types is machine-dependent and, therefore, implementation-dependent, even in the same language.
NO, it is a decimal that can be represented as the fraction 1/4 but can never be written as n integer.
There is no "integer for -8", but the integer with equivalent magnitude to -8 is 8
-1. An integer is any number that can be represented without decimals or fractions - including negatives.
negative