Comparing float and decimal
Terry Reedy
tjreedy at udel.edu
Fri Sep 26 02:20:08 EDT 2008
Mark Dickinson wrote:
> On Sep 24, 6:18 pm, Terry Reedy <tjre... at udel.edu> wrote:
>> If there is not now, there could be in the future, and the decimal
>> authors are committed to follow the standard wherever it goes.
>> Therefore, the safe course, to avoid possible future deprecations due to
>> doing too much, is to only do what is mandated.
>
> Makes sense. It looks as though the standard's pretty stable now
> though; I'd be quite surprised to see it evolve to include discussion
> of floats. But then again, people thought it was stable just before
> all the extra transcendental operations appeared. :-)
What got me were the bizarre new 'logical' operations whose addition
were rather nonsensical from a Python viewpoint (though probably
sensible from an IBM profit business viewpoint). With those added, and
with this thread, I have decided that Decimals best be thought of as a
separate universe, not to be mixed with other numbers unless one has
good reason to and understands the possible anomalies of doing so. For
pure finance apps, I would think that there should be little reason to mix.
tjr
More information about the Python-list
mailing list