Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 081483c

Browse files
committed
Fix markup and nits.
1 parent 536f76b commit 081483c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Doc/tut/tut.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5057,21 +5057,21 @@ \section{Tools for Working with Lists\label{list-tools}}
50575057
\end{verbatim}
50585058
50595059
5060-
\section{Tools for Working with Decimal Floating Point\label{decimal-fp}}
5060+
\section{Decimal Floating Point Arithmetic\label{decimal-fp}}
50615061
5062-
The \module{decimal} module, offers a \class{Decimal} data type for
5062+
The \module{decimal} module offers a \class{Decimal} datatype for
50635063
decimal floating point arithmetic. Compared to the built-in \class{float}
5064-
type implemented with binary floating point, the new class is especially
5065-
useful for financial applications and other uses which require exact
5064+
implementation of binary floating point, the new class is especially
5065+
helpful for financial applications and other uses which require exact
50665066
decimal representation, control over precision, control over rounding
50675067
to meet legal or regulatory requirements, tracking of significant
50685068
decimal places, or for applications where the user expects the results
5069-
to match hand calculations done as taught in school.
5069+
to match hand calculations as taught in school.
50705070
5071-
For example, calculating a 5% tax on a 70 cent phone charge gives
5072-
different results in decimal floating point and binary floating point
5073-
with the difference being significant when rounding to the nearest
5074-
cent:
5071+
For example, calculating a 5\%{} tax on a 70 cent phone charge gives
5072+
different results in decimal floating point and binary floating point.
5073+
The difference becomes significant if the results are rounded to the
5074+
nearest cent:
50755075
50765076
\begin{verbatim}
50775077
>>> from decimal import *

0 commit comments

Comments
 (0)