Working with decimals
Joshua Landau
joshua at landau.ws
Sat Aug 23 17:52:09 EDT 2014
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
More information about the Python-list
mailing list