Most people know that computer stores data in
bit pattern using 1s and 0s.
But how can computer do this?
We'll look at integer first
We can use use the above method to represent number
with decimals. We, however, seldom use fixed point
representation. We use floating point representation
Floating Point Representation
Floating Point Bit Pattern Divides in several parts
- Sign of mantissa ("1" = "-", "0" = "+")
- Magnitude of mantissa
- Exponent (can be represented by sign-snd-magnitude,
2's complement or excess code)
The sign of the number = Sign of mantissa
The value of the number = Magnitude of mantissa * 2
Proceed to : Machine Instruction