|
1 | 1 | # Binary representation of floating-point numbers
|
2 | 2 |
|
3 | | -Have you ever wondered how computers store the floating-point numbers like `3.1415` (π) or `9.109 ×ばつ 10−31` (the mass of the electron in kg) in the memory which is limited by a finite number of ones and zeroes (aka bits)? |
| 3 | +Have you ever wondered how computers store the floating-point numbers like `3.1416` (π) or `9.109 ×ばつ 10−31` (the mass of the electron in kg) in the memory which is limited by a finite number of ones and zeroes (aka bits)? |
4 | 4 |
|
5 | 5 | It seems pretty straightforward for integers (i.e. `17`). Let's say we have 16 bits (2 bytes) to store the number. In 16 bits we may store the integers in a range of `[0, 65535]`:
|
6 | 6 |
|
|
0 commit comments