python/dist/src/Doc/lib libdecimal.tex,1.24,1.25
Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11538 Modified Files: libdecimal.tex Log Message: Fix some wording and grammar nits. Index: libdecimal.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdecimal.tex,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- libdecimal.tex 25 Nov 2004 05:35:32 -0000 1.24 +++ libdecimal.tex 21 Feb 2005 15:46:52 -0000 1.25 @@ -84,7 +84,7 @@ \constant{Subnormal}, \constant{Overflow}, and \constant{Underflow}. For each signal there is a flag and a trap enabler. When a signal is -encountered, its flag incremented from zero and, then, if the trap enabler +encountered, its flag is incremented from zero and, then, if the trap enabler is set to one, an exception is raised. Flags are sticky, so the user needs to reset them before monitoring a calculation. @@ -119,7 +119,7 @@ \end{verbatim} -Decimal instances can be constructed from integers, strings or tuples. To +Decimal instances can be constructed from integers, strings, or tuples. To create a Decimal from a \class{float}, first convert it to a string. This serves as an explicit reminder of the details of the conversion (including representation error). Decimal numbers include special values such as @@ -160,7 +160,7 @@ \end{verbatim} -Decimals interact well with much of the rest of python. Here is a small +Decimals interact well with much of the rest of Python. Here is a small decimal floating point flying circus: \begin{verbatim} @@ -741,7 +741,7 @@ \end{classdesc*} \begin{classdesc*}{DecimalException} - Base class for other signals and is a subclass of + Base class for other signals and a subclass of \exception{ArithmeticError}. \end{classdesc*} @@ -847,7 +847,7 @@ \begin{verbatim} # Examples from Seminumerical Algorithms, Section 4.2.2. ->>> from decimal import * +>>> from decimal import Decimal, getcontext
getcontext().prec = 8
u, v, w = Decimal(11111113), Decimal(-11111111), Decimal('7.51111111')
participants (1)
-
rhettingerīŧ users.sourceforge.net