creation d02 ex02
This commit is contained in:
@@ -58,7 +58,7 @@ DECIMALE VS BINARY
|
||||
---------------------------------------------------------
|
||||
NEGATIVS INTEGERS
|
||||
---------------------------------------------------------
|
||||
|
||||
```
|
||||
5 0101 0 0000 0 0000 0000 0000 0000 0000 0000 0000 0000
|
||||
1010 + 1 1 0001 1 0000 0000 0000 0000 0000 0000 0000 0001
|
||||
-5 1011 2 0010 2 0000 0000 0000 0000 0000 0000 0000 0010
|
||||
@@ -79,13 +79,14 @@ NEGATIVS INTEGERS
|
||||
13 1101 -3 1111 1111 1111 1111 1111 1111 1111 1101
|
||||
14 1110 -2 1111 1111 1111 1111 1111 1111 1111 1110
|
||||
15 1111 -1 1111 1111 1111 1111 1111 1111 1111 1111
|
||||
|
||||
```
|
||||
|
||||
---------------------------------------------------------
|
||||
FLOATS
|
||||
---------------------------------------------------------
|
||||
https://stackoverflow.com/questions/7644699/how-are-floating-point-numbers-stored-in-memory
|
||||
|
||||
```
|
||||
1.....................23
|
||||
8......1
|
||||
seeeeeeeemmmmmmmmmmmmmmmmmmmmmmm meaning
|
||||
@@ -93,20 +94,21 @@ https://stackoverflow.com/questions/7644699/how-are-floating-point-numbers-store
|
||||
signe
|
||||
exponent
|
||||
mantis
|
||||
|
||||
```
|
||||
1.175494351 * 10^-38 < ... > 3.40282347 * 10^+38
|
||||
|
||||
2x10^-1 = 0.2x10^0 = 0.02x10^1 = 0.2
|
||||
|
||||
x 00000000 xxxxxxxx xxxxxxxx xxxxxxx special meanings (see bellow)
|
||||
x 11111111 xxxxxxxx xxxxxxxx xxxxxxx //
|
||||
x 00000001 xxxxxxxx xxxxxxxx xxxxxxx smallest exponent (-126)
|
||||
x 01111111 xxxxxxxx xxxxxxxx xxxxxxx 0 is middle exponent (254 / 2 = 127)
|
||||
x 11111110 xxxxxxxx xxxxxxxx xxxxxxx biggest exponent (+127)
|
||||
- x 00000000 xxxxxxxx xxxxxxxx xxxxxxx special meanings (see bellow)
|
||||
- x 11111111 xxxxxxxx xxxxxxxx xxxxxxx //
|
||||
- x 00000001 xxxxxxxx xxxxxxxx xxxxxxx smallest exponent (-126)
|
||||
- x 01111111 xxxxxxxx xxxxxxxx xxxxxxx 0 is middle exponent (254 / 2 = 127)
|
||||
- x 11111110 xxxxxxxx xxxxxxxx xxxxxxx biggest exponent (+127)
|
||||
|
||||
x 00000000 00000000 00000000 0000000 0 (x can still be + or -)
|
||||
x 11111111 00000000 00000000 0000000 +/- infinity
|
||||
x 11111111 xxxxxxxx xxxxxxxx xxxxxx1 NaN (at least one non-zero mantissa digit)
|
||||
x 00000000 xxxxxxxx xxxxxxxx xxxxxx1 denormalized numbers (same for mantissa)
|
||||
- x 00000000 00000000 00000000 0000000 0 (x can still be + or -)
|
||||
- x 11111111 00000000 00000000 0000000 +/- infinity
|
||||
- x 11111111 xxxxxxxx xxxxxxxx xxxxxx1 NaN (at least one non-zero mantissa digit)
|
||||
- x 00000000 xxxxxxxx xxxxxxxx xxxxxx1 denormalized numbers (same for mantissa)
|
||||
|
||||
---------------------------------------------------------
|
||||
CONVERSIONS
|
||||
|
||||
Reference in New Issue
Block a user