Working with decimals

Seymore4Head Seymore4Head at Hotmail.invalid
Sat Aug 23 18:03:34 EDT 2014


On Sat, 23 Aug 2014 22:52:09 +0100, Joshua Landau <joshua at landau.ws>
wrote:

>On 23 August 2014 18:47, Seymore4Head <Seymore4Head at hotmail.invalid> wrote:
>> Anyone care to suggest what method to use to fix the decimal format?
>
>It sounds like you want a primer on floating point. The documentation
>of the decimal module is actually a good read, although I don't doubt
>there are even better resources somewhere:
>
>https://docs.python.org/3/library/decimal.html
>
>Note that you probably also want to use the decimal module, seeing as
>it's good at storing decimals.
>
>Finally, look at "moneyfmt" in the decimal docs:
>
>https://docs.python.org/3/library/decimal.html#recipes

OK.   Thanks



More information about the Python-list mailing list