If I remember right (it's been a long time since I made this), I did it that way because the part after the decimal point is what's interesting for this. If you're trying to compare integers, you can just compare them the normal way, and even fractions ≥ 1 you'd just compare the integer part and then compare the fraction part; this way it's slightly less typing if all the numbers are between 0 and 1.