Hexadecimal - 4 bit representations Octal = 3-bit representations
Base 2 Decimal
first bit: second bit: and so on
Converting from decimal fractions to base 2 representations:
- multiply decimal by 2 until 1.0 is reached. Then subtract 1 for the next bit
Fixed point (Q15.16) 32-bit system
Bit assignment: 1 - sign, 15 - integer, 16 - fractional
Floating point (IEEE-754)
Bit assignment: 1 - sign, 8 - exponent, 23 - fractional or Example:
sign - 1 exponent = 129 (since 129 - 127 = 2) fractional = 101010…0