float_to_fraction | R Documentation |
Converts a decimal to a fraction based on the algorithm from http://stackoverflow.com/a/5128558/221955.
float_to_fraction(x, tol = 1e-06)
x |
The fraction in decimal form. |
tol |
The tolerance level for the conversion error. |
Kaifeng Lu, kaifenglu@gmail.com
float_to_fraction(5/3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.