Computer Codes (1)
Code is a systematic use of a given set of symbols for representing information.
Example: Traffic light (Red: stop, Yellow: caution, Blue: go).
Numeric Codes
- To represent numbers.
- Fixed-point and floating-point number.
Fixed-point Numbers
- Used for signed integers or integer fractions.
- Sign magnitude, two’s complement, or one’s complement systems are used.
- Integer: (Sign bit) + (Magnitude) + (Implied radix point)
- Fraction: (Sign bit) + (Implied radix point) + (Magnitude)