Skip to content

Commit badf301

Browse files
committed
Binary representation of the floating-point numbers.
1 parent b2d1ec8 commit badf301

File tree

1 file changed

+1
-1
lines changed
  • src/algorithms/math/binary-floating-point

1 file changed

+1
-1
lines changed

src/algorithms/math/binary-floating-point/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Binary representation of floating-point numbers
22

3-
Have you ever wondered how computers store the floating-point numbers like `3.1415` (𝝿) or `9.109 × 10⁻³¹` (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⁻³¹` (the mass of the electron in kg) in the memory which is limited by a finite number of ones and zeroes (aka bits)?
44

55
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]`:
66

0 commit comments

Comments
 (0)