fix float/rational vs mathconst comparisons