csnotes/cst337/lec/lec17.md
Medium Fries c319e77f12 bleh
2018-12-10 17:29:54 -08:00

411 B

floating point

mips uses ieee754

parts of floats

  1. Sign bit
  2. Exponent
  3. Mantissa

32-bit floats btw

Sign

bruh

exponent

This is coming from scientific notation so we have 2.0E3

This means our 8 bit exponent is 0000 0011 + 0111 1111

Mantissa

let's roll with 2.0E3

Mantiss of 2.0 = 0 <- 23 times

We have 23 0's because the decimal portion of our number 2.0E3 is 0.