]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix nits.
authorRaymond Hettinger <python@rcn.com>
Wed, 15 Jun 2005 16:54:30 +0000 (16:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 15 Jun 2005 16:54:30 +0000 (16:54 +0000)
Doc/lib/libdecimal.tex

index 9cbb88d45fc10c9ad505d3cc71a6dddda1c8aeec..c34633cc997e991c913cb1e1a4459ce6d4506935 100644 (file)
@@ -1121,9 +1121,9 @@ def sin(x):
 
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \subsection{Decimal FAQ \label{decimal-faq}}
 
-
 Q.  It is cumbersome to type \code{decimal.Decimal('1234.5')}.  Is there a way
 to minimize typing when using the interactive interpreter?
 
@@ -1169,7 +1169,7 @@ point.  Others, like multiplication and division, change the number of decimal
 places and need to be followed-up with a \method{quantize()} step.
 
 
-Q.  There are many ways to write express the same value.  The numbers
+Q.  There are many ways to express the same value.  The numbers
 \constant{200}, \constant{200.000}, \constant{2E2}, and \constant{.02E+4} all
 have the same value at various precisions. Is there a way to transform them to
 a single recognizable canonical value?
@@ -1203,6 +1203,7 @@ def floatToDecimal(f):
         mantissa *= 2.0
         exponent -= 1
     mantissa = int(mantissa)
+
     oldcontext = getcontext()
     setcontext(Context(traps=[Inexact]))
     try: