Add float to Ratio conversion

Add a function to create a Ratio<BigInt> out of a float
(f32 or f64).