diff options
author | Raymond Hettinger <python@rcn.com> | 2009-04-23 22:06:12 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-04-23 22:06:12 (GMT) |
commit | d258d1e7e83a115b79236a5456be75e8cc9a9062 (patch) | |
tree | 73824c8314be81ff471dba37a946c158dbef78ac /Doc | |
parent | 4a16e3a764313c5db0348600501eb7f89ea99d61 (diff) | |
download | cpython-d258d1e7e83a115b79236a5456be75e8cc9a9062.zip cpython-d258d1e7e83a115b79236a5456be75e8cc9a9062.tar.gz cpython-d258d1e7e83a115b79236a5456be75e8cc9a9062.tar.bz2 |
Update decimal docs for the new floating point repr().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/decimal.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 8f8743c1..2b4d156 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -30,9 +30,9 @@ arithmetic. It offers several advantages over the :class:`float` datatype: people learn at school." -- excerpt from the decimal arithmetic specification. * Decimal numbers can be represented exactly. In contrast, numbers like - :const:`1.1` do not have an exact representation in binary floating point. End - users typically would not expect :const:`1.1` to display as - :const:`1.1000000000000001` as it does with binary floating point. + :const:`1.1` and :const:`2.2` do not have an exact representations in binary + floating point. End users typically would not expect ``1.1 + 2.2`` to display + as :const:`3.3000000000000003` as it does with binary floating point. * The exactness carries over into arithmetic. In decimal floating point, ``0.1 + 0.1 + 0.1 - 0.3`` is exactly equal to zero. In binary floating point, the result |