]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Enhance readability by avoiding big blocks for small numbers. (GH-31157)
authorJulien Palard <julien@palard.fr>
Sun, 6 Feb 2022 12:44:04 +0000 (13:44 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Feb 2022 12:44:04 +0000 (13:44 +0100)
Initially reported by Gregory Jacob on the docs@ mailing list:

https://mail.python.org/archives/list/docs@python.org/thread/VPSFGLOZOHSPF7TGPOI65AOH25TCPSVR/

Doc/tutorial/floatingpoint.rst

index 7212b40be83772da7721d56ac2ab5eba81367e4e..e1cd7f9ece75d0e730ae6e303aa650c416644034 100644 (file)
@@ -12,15 +12,9 @@ Floating Point Arithmetic:  Issues and Limitations
 
 
 Floating-point numbers are represented in computer hardware as base 2 (binary)
-fractions.  For example, the decimal fraction ::
-
-   0.125
-
-has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::
-
-   0.001
-
-has value 0/2 + 0/4 + 1/8.  These two fractions have identical values, the only
+fractions.  For example, the **decimal** fraction ``0.125``
+has value 1/10 + 2/100 + 5/1000, and in the same way the **binary** fraction ``0.001``
+has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
 real difference being that the first is written in base 10 fractional notation,
 and the second in base 2.