R/RcppExports.R
float_to_fraction.Rd
Converts a decimal to a fraction based on the algorithm from http://stackoverflow.com/a/5128558/221955.
float_to_fraction(x, tol = 1e-06)
The fraction in decimal form.
The tolerance level for the conversion error.
Kaifeng Lu, kaifenglu@gmail.com
float_to_fraction(5/3) #> [1] 5 3