| Decimal Value | Binary Value | 2^3 | 2^2 | 2^1 | 2^0 |
|---|---|---|---|---|---|
| 8s | 4s | 2s | 1s | ||
| 1 | 1 | 0 | 0 | 0 | 1 |
| 2 | 10 | 0 | 0 | 1 | 0 |
| 2^8 | 2^7 | 2^6 | 2^5 | 2^4 | 2^3 | 2^2 | 2^1 | 2^0 |
|---|---|---|---|---|---|---|---|---|
| 256 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| base 10 | 32 | 16 | 8 | 4 | 2 | 1 | |
| base 2 | 1 | 0 | 1 | 1 | 1 | 0 | |
| base 8 | 5 | 6 |
| sign of mantissa | sign of exponent | ||||||||
| d1 | d2 | d3 | d4 | d5 | d6 | d7 | d8 | ||
| digits of mantissa | digits of exponent | ||||||||
| - 8 | 4 | 2 | 1 |
|---|---|---|---|
| 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1/2 | 1/4 | 1/8 | 1/16 | 1/32 |
|---|---|---|---|---|
| .5 | .25 | .125 | .0625 | .03125 |
| sign of mantissa | sign of exponent | ||||||||
| A | B | B | B | B | C | D | D | ||
| digits of mantissa | digits of exponent | ||||||||
| Identity | Name | |
| x + x = x x * x = x | Idempotent laws | |
| x + 0 = x x * 1 = x | Identity laws | |
| x + 1 = 1 x * 0 = 0 | Dominance laws | |
| x + y = y + x xy = yx | Commutative laws | |
| (x + y) + z = x + (y + z) x(yz) = (xy)z | Associative laws | |
| x + yz = (x + y )(x + z) x(y + z) = xy + xz | Distributive laws |
| A | B | A OR B |
| false | false | false |
| true | false | true |
| false | true | true |
| true | true | true |
not gate
| A | ¬A |
| false | True |
| True | False |
and gate
| A | B | A ^ B |
| false | false | false |
| false | true | false |
| true | false | false |
| true | true | true |