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

Skip to content

Commit 44dc13b

Browse files
committed
Fix decimal write-up nits.
1 parent 65df07b commit 44dc13b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/tut/tut.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5066,7 +5066,7 @@ \section{Decimal Floating Point Arithmetic\label{decimal-fp}}
50665066
require exact decimal representation, control over precision, control over
50675067
rounding to meet legal or regulatory requirements, tracking of significant
50685068
decimal places, or for applications where the user expects the results to
5069-
calculations done by hand.
5069+
match calculations done by hand.
50705070
50715071
For example, calculating a 5\%{} tax on a 70 cent phone charge gives
50725072
different results in decimal floating point and binary floating point.
@@ -5081,10 +5081,10 @@ \section{Decimal Floating Point Arithmetic\label{decimal-fp}}
50815081
0.73499999999999999
50825082
\end{verbatim}
50835083
5084-
Note that the \class{Decimal} result keeps a trailing zero, automatically
5085-
inferring four place significance from two digit mulitiplicands. Decimal
5086-
reproduces mathematics as done by hand and avoids issues that can arise
5087-
when binary floating point cannot exactly represent decimal quantities.
5084+
The \class{Decimal} result keeps a trailing zero, automatically inferring four
5085+
place significance from the two digit multiplicands. Decimal reproduces
5086+
mathematics as done by hand and avoids issues that can arise when binary
5087+
floating point cannot exactly represent decimal quantities.
50885088
50895089
Exact representation enables the \class{Decimal} class to perform
50905090
modulo calculations and equality tests that are unsuitable for binary
@@ -5102,8 +5102,8 @@ \section{Decimal Floating Point Arithmetic\label{decimal-fp}}
51025102
False
51035103
\end{verbatim}
51045104
5105-
The \module{decimal} module also allows arbitrarily large precisions to be
5106-
set for calculation:
5105+
The \module{decimal} module provides arithmetic with as much precision as
5106+
needed:
51075107
51085108
\begin{verbatim}
51095109
>>> getcontext().prec = 36

0 commit comments

Comments
 (0)