Introduction :

TD

<aside> 💡 shift 8 = decaler de 2 . kol case fiha 4

</aside>

Virgule flottante

  1. 6.25 = 110.01 = 1.1001 *$2^2$

2+127 = 129 = 2^7 +1 ⇒

0 10000001 00000000000000000001001
sign exponent Value

Hexadecimal = 0x40c80000

0.25 * 2 = 0.5 ⇒ t7ot 0

0.5 * 2 =1 ⇒ t7ot 1

  1. 0x82988000 ⇒ Transformer en binaire virgule flottante

1 00000101 00110001000000000000000

1 00000101 00110001000000000000000
sign Exponent value

Sign = -1

Exponent = 5

5-127 = - 122