[Python-Dev] prePEP: Decimal data type
Batista, Facundo
FBatista at uniFON.com.ar
Fri Oct 31 14:51:53 EST 2003
#- 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
More information about the Python-Dev
mailing list