11df43be78
Also check for infinity in floatToRationalCast as depending on the compiler special values of floats are converted to either LONGMAX/LONGMIN or +/-inf