summaryrefslogtreecommitdiffstats
path: root/Doc/tut
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-07-09 06:00:32 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-07-09 06:00:32 (GMT)
commit9499658b617cb32605b54d252124b4d4ed574cdb (patch)
treee817ec4725c5b99cf21fe9877fae131fce487b54 /Doc/tut
parenteae05de91be776d141e531a11cb169dd30a8241d (diff)
downloadcpython-9499658b617cb32605b54d252124b4d4ed574cdb.zip
cpython-9499658b617cb32605b54d252124b4d4ed574cdb.tar.gz
cpython-9499658b617cb32605b54d252124b4d4ed574cdb.tar.bz2
Add a link to the decimal module docs.
Diffstat (limited to 'Doc/tut')
-rw-r--r--Doc/tut/tut.tex16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index 4827ab2..7472082 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -5059,14 +5059,14 @@ want to run a full list sort:
\section{Decimal Floating Point Arithmetic\label{decimal-fp}}
-The \module{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 hand calculations as taught in school.
+The \ulink{\module{decimal}}{../lib/module-decimal.html} 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
+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.