Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 55499:93883f3787b5 legacy-trunk
Fix some markup and small factual glitches found by M. Markert.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 29 Jul 2009 17:07:21 +0000 |
| parents | a9252b8847f0 |
| children | e05322efca85 |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Wed Jul 29 16:57:05 2009 +0000 +++ b/Doc/tutorial/stdlib2.rst Wed Jul 29 17:07:21 2009 +0000 @@ -347,12 +347,15 @@ The :mod:`decimal` module offers a :class:`Decimal` datatype for decimal floating point arithmetic. Compared to the built-in :class:`float` -implementation of binary floating point, the new class is especially helpful for -financial applications and other uses which require exact decimal -representation, control over precision, control over rounding to meet legal or -regulatory requirements, tracking of significant decimal places, or for -applications where the user expects the results to match calculations done by -hand. +implementation of binary floating point, the class is especially helpful for + +* financial applications and other uses which require exact decimal + representation, +* control over precision, +* control over rounding to meet legal or regulatory requirements, +* tracking of significant decimal places, or +* applications where the user expects the results to match calculations done by + hand. For example, calculating a 5% tax on a 70 cent phone charge gives different results in decimal floating point and binary floating point. The difference
