summaryrefslogtreecommitdiffstats
path: root/Doc/tut/tut.tex
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-07-08 09:33:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-07-08 09:33:00 (GMT)
commit081483cd42fe221b568c3b0ce90ce3e867896c6c (patch)
tree51b17d253b43ce49d0a0e3dfdcb2c82c032b076b /Doc/tut/tut.tex
parent536f76b25ad7388238080cbb5b42f6b39f6e7f16 (diff)
downloadcpython-081483cd42fe221b568c3b0ce90ce3e867896c6c.zip
cpython-081483cd42fe221b568c3b0ce90ce3e867896c6c.tar.gz
cpython-081483cd42fe221b568c3b0ce90ce3e867896c6c.tar.bz2
Fix markup and nits.
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r--Doc/tut/tut.tex18
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index c53ef06..4827ab2 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -5057,21 +5057,21 @@ want to run a full list sort:
\end{verbatim}
-\section{Tools for Working with Decimal Floating Point\label{decimal-fp}}
+\section{Decimal Floating Point Arithmetic\label{decimal-fp}}
-The \module{decimal} module, offers a \class{Decimal} data type for
+The \module{decimal} module offers a \class{Decimal} datatype for
decimal floating point arithmetic. Compared to the built-in \class{float}
-type implemented with binary floating point, the new class is especially
-useful for financial applications and other uses which require exact
+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 hand calculations done as taught in school.
+to match hand calculations as taught in school.
-For example, calculating a 5% tax on a 70 cent phone charge gives
-different results in decimal floating point and binary floating point
-with the difference being significant when rounding to the nearest
-cent:
+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 becomes significant if the results are rounded to the
+nearest cent:
\begin{verbatim}
>>> from decimal import *