RE: [Python-Dev] Decimal.py in sandbox

Oct. 29, 2003
9:03 a.m.
Aahz wrote: #- > >>> myDecimal = Decimal(5) #- > >>> myfloat = 3.0 #- > >>> mywhat = myDecimal + myfloat #- > >>> isinstance(mywhat, float) #- > True #- #- Absolutely not. No way, no how, no time. -1000 :) #- are inexactly represented in Python. My opinion is that conversion #- between float and Decimal should always be explicit (and my #- recollection #- is that Tim Peters agrees). I'm not decided for any option. I just want (it will be nice) the group to decant either way. There's some controversial about this. Anyway, I'll explicit the options in the pre-PEP, and we all will take a side, :) . Facundo
7811
Age (days ago)
7811
Last active (days ago)
0 comments
1 participants
participants (1)
-
Batista, Facundo