equals, hashCode and toFloat() in RationalNumber