Files
G4G0-1/Semester 1/Computer Systems Internals & Linux/Week 4/Week 4 Computer Systems Internals - Floating Point.md
2024-01-15 20:14:10 +00:00

16 lines
474 B
Markdown

## 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