prePEP: Decimal data type
Batista, Facundo
FBatista at uniFON.com.ar
Thu Nov 6 13:50:43 EST 2003
Aahz wrote:
#- >#- >2. The value could be of the type:
#- >#- >
#- >#- > - another Decimal
#- >#- > - int or long
#- >#- > - float
#- >#- > - string
#- >#-
#- >#- Also a tuple of int/longs.
#- >
#- >I didn't include that in the prePEP because it seems that the actual
#- >implementation support this just to dec ==
#- Decimal(repr(dec)), for every
#- >Decimal as dec.
#- >
#- >Has any other advantage?
#-
#- Yes: it means that someone who has numeric values
#- representing a Decimal
#- does not need to convert them to a string.
Ok. I'll modify the item 2.
. Facundo
More information about the Python-list
mailing list