[Python-Dev] Mixing float and Decimal -- thread reboot
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Mar 21 23:50:26 CET 2010
Raymond Hettinger wrote:
> Since decimal also allows arbitrary sizes, all long ints can be
> exactly represented (this was even one of the design goals
> for the decimal module).
There may be something we need to clarify here. I've been
imagining that the implicit conversions to Decimal that
we're talking about would be done to whatever precision
is set in the context. Am I wrong about that? Is the intention
to always use enough digits to get an exact representation?
--
Greg
More information about the Python-Dev
mailing list