Working with decimals

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Aug 23 16:31:51 EDT 2014


On 23/08/2014 20:48, Seymore4Head wrote:
>
> Thanks for the links.   The python-course looks like a beginner start.
> It raises one more question.
>
> Some have suggested using strings.  I understand that strings and
> numbers are not the same thing.  I know that converting numbers to
> strings can be useful for display, but you would think that there
> would be enough demand for a built in set of instructions that handle
> money calculations accurately.
>

The joys of floating point numbers (you're calling them decimals) on 
computers.  Search the archives of this list and you'll find loads of 
references which will explain them far better than I can.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list