[Python-checkins] python/nondist/sandbox/decimal Decimal.py, 1.20,
1.21
facundobatista at users.sourceforge.net
facundobatista at users.sourceforge.net
Mon Jun 21 17:50:53 EDT 2004
- Previous message: [Python-checkins] python/nondist/sandbox/decimal/tests abs.decTest,
1.5, 1.6 add.decTest, 1.5, 1.6 base.decTest, 1.5,
1.6 clamp.decTest, 1.5, 1.6 compare.decTest, 1.5,
1.6 divide.decTest, 1.5, 1.6 divideint.decTest, 1.5,
1.6 inexact.decTest, 1.5, 1.6 max.decTest, 1.5,
1.6 min.decTest, 1.5, 1.6 minus.decTest, 1.5,
1.6 multiply.decTest, 1.5, 1.6 normalize.decTest, 1.5,
1.6 plus.decTest, 1.5, 1.6 power.decTest, 1.5,
1.6 quantize.decTest, 1.3, 1.4 randomBound32.decTest, 1.5,
1.6 randoms.decTest, 1.6, 1.7 remainder.decTest, 1.5,
1.6 remainderNear.decTest, 1.5, 1.6 rounding.decTest, 1.5,
1.6 samequantum.decTest, 1.1, 1.2 squareroot.decTest, 1.5,
1.6 subtract.decTest, 1.5, 1.6 tointegral.decTest, 1.2, 1.3
- Next message: [Python-checkins] python/nondist/sandbox/decimal test_Decimal.py,
1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/nondist/sandbox/decimal
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30989
Modified Files:
Decimal.py
Log Message:
Lots of name changes. New methods. Several fixes. Complies with updated Cowlishaw test cases.
Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Decimal.py 20 Jun 2004 01:54:59 -0000 1.20
--- Decimal.py 21 Jun 2004 21:50:51 -0000 1.21
***************
*** 22,40 ****
>>> from Decimal import *
>>> Decimal(0)
! Decimal( (0, (0,), 0L) )
>>> Decimal("1")
! Decimal( (0, (1,), 0L) )
>>> Decimal("-.0123")
! Decimal( (1, (1, 2, 3), -4L) )
! >>> Decimal("1.20")
! Decimal( (0, (1, 2, 0), -2L) )
! >>> str(Decimal(123456789012345678901234567890L))
[...1812 lines suppressed...]
#Used in SetDefaultContext
--- 2499,2503 ----
DEFAULT_FLAGS.copy(), DEFAULT_ROUNDING_DECISION,
DEFAULT_MIN_EXPONENT, DEFAULT_MAX_EXPONENT,
! CAPITALS, CLAMP, IGNORED_FLAGS)
#Used in SetDefaultContext
***************
*** 2574,2578 ****
'DEFAULT_FLAGS' : 'flags',
'DEFAULT_ROUNDING' : 'rounding',
! 'DEFAULT_ROUNDING_DECISION' : 'rounding_decision',
'DEFAULT_MIN_EXPONENT' : 'Emin',
'DEFAULT_MAX_EXPONENT' : 'Emax'}
--- 2506,2510 ----
'DEFAULT_FLAGS' : 'flags',
'DEFAULT_ROUNDING' : 'rounding',
! 'DEFAULT_ROUNDING_DECISION' : '_rounding_decision',
'DEFAULT_MIN_EXPONENT' : 'Emin',
'DEFAULT_MAX_EXPONENT' : 'Emax'}
- Previous message: [Python-checkins] python/nondist/sandbox/decimal/tests abs.decTest,
1.5, 1.6 add.decTest, 1.5, 1.6 base.decTest, 1.5,
1.6 clamp.decTest, 1.5, 1.6 compare.decTest, 1.5,
1.6 divide.decTest, 1.5, 1.6 divideint.decTest, 1.5,
1.6 inexact.decTest, 1.5, 1.6 max.decTest, 1.5,
1.6 min.decTest, 1.5, 1.6 minus.decTest, 1.5,
1.6 multiply.decTest, 1.5, 1.6 normalize.decTest, 1.5,
1.6 plus.decTest, 1.5, 1.6 power.decTest, 1.5,
1.6 quantize.decTest, 1.3, 1.4 randomBound32.decTest, 1.5,
1.6 randoms.decTest, 1.6, 1.7 remainder.decTest, 1.5,
1.6 remainderNear.decTest, 1.5, 1.6 rounding.decTest, 1.5,
1.6 samequantum.decTest, 1.1, 1.2 squareroot.decTest, 1.5,
1.6 subtract.decTest, 1.5, 1.6 tointegral.decTest, 1.2, 1.3
- Next message: [Python-checkins] python/nondist/sandbox/decimal test_Decimal.py,
1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list