diff options
author | Georg Brandl <georg@python.org> | 2009-07-29 17:07:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-07-29 17:07:21 (GMT) |
commit | ffefd5a8bb9317284257c2a035ac396ec69b8232 (patch) | |
tree | 04126280785d730d363ac9eb27bea59dda184f85 /Doc/tutorial/stdlib2.rst | |
parent | 07e20f8729114cb4c36a7592a0047e2b471404b9 (diff) | |
download | cpython-ffefd5a8bb9317284257c2a035ac396ec69b8232.zip cpython-ffefd5a8bb9317284257c2a035ac396ec69b8232.tar.gz cpython-ffefd5a8bb9317284257c2a035ac396ec69b8232.tar.bz2 |
Fix some markup and small factual glitches found by M. Markert.
Diffstat (limited to 'Doc/tutorial/stdlib2.rst')
-rw-r--r-- | Doc/tutorial/stdlib2.rst | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 0d1d4c7..6f0a6ed 100644 --- a/Doc/tutorial/stdlib2.rst +++ b/Doc/tutorial/stdlib2.rst @@ -347,12 +347,15 @@ Decimal Floating Point Arithmetic 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 |