[Python-Dev] Rounding float to int directly ... (original) (raw)
M.-A. Lemburg mal at egenix.com
Wed Aug 2 14:48:13 CEST 2006
- Previous message: [Python-Dev] Rounding float to int directly ...
- Next message: [Python-Dev] Rounding float to int directly ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michael Chermside wrote:
Marc-Andre Lemburg writes:
You often have a need for controlled rounding when doing financial calculations or [other reason snipped] Hmm. Not in the banks I have worked at! We never use binary floating point for money. The decimal class is fairly useful in that regard.
For accounting, I agree - banks would rather not lose too many cents :-)
However, banks also tend to do more exotic things, esp. in investment banking, where prices are not determined by taking the sum of a list of values, but rather turn out to be the result of some calculus.
-- Marc-Andre Lemburg eGenix.com
Professional Python Services directly from the Source (#1, Aug 02 2006)
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
- Previous message: [Python-Dev] Rounding float to int directly ...
- Next message: [Python-Dev] Rounding float to int directly ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]