holman/spark — pull request #29 by mjdominus (2011-11-15 19:34:09+00:00)
Title: Various enhancements

The big one is commit d5afa01, which corrects the arithmetic and uses division to calculate the right tier instead of iterating over all possible tiers.

I added some tests, although (red flag!) I have no run them. I need to locate and install 'roundup' first. If tests fail for you (except the broken decimal one) let me know and I will fix them and resubmit.