On Tue, Oct 9, 2012 at 1:48 AM, Dave Angel <d...@davea.name> wrote:
> import decimal
> a = decimal.Decimal(4.3)
> print(a)
>
> 5.0999999999999996447286321199499070644378662109375

Ah, the delights of copy-paste :)

> The Decimal class has the disadvantage that it's tons slower on any modern 
> machine I know of...

Isn't it true, though, that Python 3.3 has a completely new
implementation of decimal that largely removes this disadvantage?

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to