Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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−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)?
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)

AltStyle によって変換されたページ (->オリジナル) /