!$@# | = | ! × (!@)$ | + | $ × (!@)# | + | @ × (!@)! | + | # × (!@)@ |
= | 1 × 43 | + | 3 × 42 | + | 0 × 41 | + | 2 × 40 | |
= | 1 × 64 | + | 3 × 16 | + | 0 × 4 | + | 2 × 1 | |
= | 64 | + | 48 | + | 0 | + | 2 | |
= | 114 |
Bit
patterns like 10110110110
are sloppily called "binary numbers" even
when they represent other things
(such as characters or machine instructions).
But, of course, bit patterns can be used to represent numbers. Base two positional notation is used for this.