Commit 9499658b authored by Raymond Hettinger's avatar Raymond Hettinger

Add a link to the decimal module docs.

parent eae05de9
...@@ -5059,14 +5059,14 @@ want to run a full list sort: ...@@ -5059,14 +5059,14 @@ want to run a full list sort:
\section{Decimal Floating Point Arithmetic\label{decimal-fp}} \section{Decimal Floating Point Arithmetic\label{decimal-fp}}
The \module{decimal} module offers a \class{Decimal} datatype for The \ulink{\module{decimal}}{../lib/module-decimal.html} module offers a
decimal floating point arithmetic. Compared to the built-in \class{float} \class{Decimal} datatype for decimal floating point arithmetic. Compared to
implementation of binary floating point, the new class is especially the built-in \class{float} implementation of binary floating point, the new
helpful for financial applications and other uses which require exact class is especially helpful for financial applications and other uses which
decimal representation, control over precision, control over rounding require exact decimal representation, control over precision, control over
to meet legal or regulatory requirements, tracking of significant rounding to meet legal or regulatory requirements, tracking of significant
decimal places, or for applications where the user expects the results decimal places, or for applications where the user expects the results to
to match hand calculations as taught in school. calculations done by hand.
For example, calculating a 5\%{} tax on a 70 cent phone charge gives For example, calculating a 5\%{} tax on a 70 cent phone charge gives
different results in decimal floating point and binary floating point. different results in decimal floating point and binary floating point.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment