Account for floating point errors in rubric

This is just a quick patch. We should eventually use Decimal for this.