# [Python-checkins] python/dist/src/Doc/lib libdecimal.tex,1.4,1.5

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Jul 5 22:27:55 CEST 2004

```Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29616

Modified Files:
libdecimal.tex
Log Message:
Simplify examples.

Index: libdecimal.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdecimal.tex,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** libdecimal.tex	5 Jul 2004 20:17:13 -0000	1.4
--- libdecimal.tex	5 Jul 2004 20:27:53 -0000	1.5
***************
*** 936,941 ****
"""
getcontext().prec += 9  # extra digits for intermediate steps
!     one = Decimal(1)        # substitute "one=1.0" for regular floats
!     lastc, t, c, n, na, d, da = 0*one, 3*one, 3*one, 1, 0, 0, 24*one
while c != lastc:
lastc = c
--- 936,941 ----
"""
getcontext().prec += 9  # extra digits for intermediate steps
!     three = Decimal(3)        # substitute "three=3.0" for regular floats
!     lastc, t, c, n, na, d, da = 0, three, 3, 1, 0, 0, 24
while c != lastc:
lastc = c
***************
*** 956,960 ****
"""
getcontext().prec += 9  # extra digits for intermediate steps
-     one = Decimal(1)        # substitute "one=1.0" for regular floats
i, laste, e, fact, num = 0, 0, 1, 1, 1
while e != laste:
--- 956,959 ----
***************
*** 974,978 ****
"""
getcontext().prec += 9  # extra digits for intermediate steps
-     one = Decimal(1)        # substitute "one=1.0" for regular floats
i, laste, e, fact, num, sign = 0, 0, 1, 1, 1, 1
while e != laste:
--- 973,976 ----
***************
*** 993,997 ****
"""
getcontext().prec += 9  # extra digits for intermediate steps
-     one = Decimal(1)        # substitute "one=1.0" for regular floats
i, laste, e, fact, num, sign = 1, 0, x, 1, x, 1
while e != laste:
--- 991,994 ----

```

More information about the Python-checkins mailing list