478 B
478 B
Lecture 1 (12:00)
IEEE-754
- 32 and 64 bit numbers
- Float and double in java
- Promotes interoperability among programming languages
- 32 bit
- Leftmost bit is a sign bit (0=+ve 1=-ve)
- 8 bit exponent (127 bit unsigned binary number)
- 23 bit mantissa without the 1 infront of the binary point
Scientific Notation
13.5 = 1101.1 = 1.1011x2 ^3 2.75 = 10110.11 = 1.011011x2 ^4 0.125 = 0.001 = 1x2 ^-3
13.5 in IEEE754 Standard = 0100000101011000000000000000000