Use a more efficient algorithm for division.
Better document the compare function.