RE: [Python-Dev] prePEP: Decimal data type

Oct. 31, 2003
1:51 p.m.
#- On Friday 31 October 2003 07:36 pm, Batista, Facundo wrote: #- ... #- > If it all goes ok, it'll be a PEP when I finish #- writing/modifying the code. #- #- I'll gladly help fix the English if needed then, let me know. Always welcomed too, :) #- > When passing floating point to the constructor, what should happen? #- > #- > j. ``Decimal(1.1) == Decimal('1.1')`` #- > k. ``Decimal(1.1) == #- > Decimal('110000000000000008881784197001252...e-51')`` #- #- You forgot an alternative that's likely to be popular on #- python-dev: "an #- exception is raised". (This would change requirement 2. later, of #- course). You're right. So the 'm' choice (votable as the others) is "an exception is raised". . Facundo
7809
Age (days ago)
7809
Last active (days ago)
0 comments
1 participants
participants (1)
-
Batista, Facundo