Float precision and float equality

Anton81 gerenuk81 at googlemail.com
Sun Dec 6 14:34:21 EST 2009


I do some linear algebra and whenever the prefactor of a vector turns
out to be zero, I want to remove it.

I'd like to keep the system comfortable. So basically I should write a
new class for numbers that has it's own __eq__ operator?
Is there an existing module for that?




More information about the Python-list mailing list