[Python-checkins] python/nondist/sandbox/decimal Decimal.py,1.6,1.7
eprice@users.sourceforge.net
eprice@users.sourceforge.net
Tue, 27 May 2003 15:27:04 -0700
Update of /cvsroot/python/python/nondist/sandbox/decimal
In directory sc8-pr-cvs1:/tmp/cvs-serv7566
Modified Files:
Decimal.py
Log Message:
Bug-fix, style-fix.
Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Decimal.py 21 May 2003 16:20:23 -0000 1.6
--- Decimal.py 27 May 2003 22:27:01 -0000 1.7
***************
*** 155,159 ****
# rounding: is set to round-half-even (IEEE 854 4.1)
-
DEFAULT_CONTEXT = EXTENDED_DEFAULT_CONTEXT
--- 155,158 ----
***************
*** 170,174 ****
# Power's increased prec can't go above this in test cases.
[...1231 lines suppressed...]
--- 2502,2505 ----
***************
*** 2558,2566 ****
mantissa = tuple(tmp)
-
return (sign, mantissa, exp)
-
def _floatToString(x):
"""Return float x as exact decimal string.
--- 2562,2568 ----
***************
*** 2677,2680 ****
DEFAULT_ROUNDING_DECISION = decision
SetDefaultContext()
-
-
--- 2679,2680 ----