Computer Arithmetic: Part III: Floating-Point Arithmetic
Computer Arithmetic: Part III: Floating-Point Arithmetic
Computer Arithmetic
Part III: Floating-Point Arithmetic
Integer Arithmetic
Multiplication and Division
Floating-Point Representation
IEEE 754
Floating-Point Arithmetic
Addition/Subtraction
Multiplication
Division
Exercise
What is the value (in decimal) of the following IEEE 754
floating point encoded number?
1 01111110 01000000000000000000000
Sign: Negative
Exponent:126-127 = -1
Significand:1.01
. = + = .
Decimal Addition
e.g.
2.625 103 + 3 102
Binary addition/subtraction
. = . 0 128 1000000
. = . = .
. = . 1 125 100
. = . = .
. = . 0 128 1000000
. = . = .
. = . 1 125 100
. = . = .
. = . 0 128 1000000
. = . = .
. = . 1 125 100
Compute 1 128 10
sign bit
. = . = .