What is considered an "advanced" topic in Python?

Dave Farrance DaveFarrance at OMiTTHiSyahooANDTHiS.co.uk
Mon Jun 1 06:44:22 EDT 2015


Laura Creighton <lac at openend.se> wrote:

>If you are giving a talk about Decimal -- and trying to stamp out the
>inappropriate use of floats you have to first inform people that
>what they learned as 'decimals' as children was not floating point,
>despite the fact that we write them the same way. ...

To be fair, prior to electronic computers, they were essentially
synonymous.  It's a bit like finance experts chiding people for mixing
"cost" with "price".

>>> Decimal('0.3')
Decimal('0.3')
>>> Decimal(0.3)
Decimal('0.299999999999999988897769753748434595763683319091796875')



More information about the Python-list mailing list