[issue4796] Decimal to receive from_float method
Mark Dickinson
report at bugs.python.org
Fri Jan 2 18:28:26 CET 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
> It looks like you and Raymond have rejected #2 but are keeping #1
I'm not against #2, but I'm not particularly for it either. In any case,
once you've converted your float to Decimal it's trivial to round it to
whatever precision you feel like, so #2 seems unnecessary to me. -0.0.
I am -1.100000000000000088817841970012523233890533447265625 on any
implementation of from_float (with or without keywords, defaults, etc.)
for which Decimal.from_float(1.1) gives Decimal('1.1').
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4796>
_______________________________________
More information about the Python-bugs-list
mailing list