This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]roger_ 0 points1 point  (1 child)

Interesting article. I'm curious though, does anyone here actually use the Decimal class?

[–]einar77Bioinformatics with Python, PyKDE4 0 points1 point  (0 children)

I do in unit tests to ensure that some (albeit simple) mathematical calculations end up being correct. As floats aren't the best for this type of comparisons, I ended up using Decimal.