Skip to content

Commit fa90e48

Browse files
authored
[doc] Enhance readability by avoiding big blocks for small numbers. (GH-31157)
Initially reported by Gregory Jacob on the docs@ mailing list: https://mail.python.org/archives/list/[email protected]/thread/VPSFGLOZOHSPF7TGPOI65AOH25TCPSVR/
1 parent 54842e4 commit fa90e48

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Doc/tutorial/floatingpoint.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@ Floating Point Arithmetic: Issues and Limitations
1212

1313

1414
Floating-point numbers are represented in computer hardware as base 2 (binary)
15-
fractions. For example, the decimal fraction ::
16-
17-
0.125
18-
19-
has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::
20-
21-
0.001
22-
23-
has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
15+
fractions. For example, the **decimal** fraction ``0.125``
16+
has value 1/10 + 2/100 + 5/1000, and in the same way the **binary** fraction ``0.001``
17+
has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
2418
real difference being that the first is written in base 10 fractional notation,
2519
and the second in base 2.
2620

0 commit comments

Comments
 (0)