Precision?
Facundo Batista
facundobatista at gmail.com
Sun May 15 23:28:04 EDT 2005
On 5/15/05, Ron Adam <rrr at ronadam.com> wrote:
> >>> x
> 3200001.6000000001
>
> Here the error has been kept to a minimum. In most cases, it isn't a
> problem, but it is something to be aware of. It does matter in banking
> and I beleive there are standard ways of dealing with it.
Yes, use Decimal:
http://docs.python.org/lib/module-decimal.html
Remember that you can also use it in Python 2.3.x:
http://www.taniquetil.com.ar/facundo/bdvfiles/get_decimal.html
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-list
mailing list