[R] Number -> Fraction

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Sep 13 17:06:00 CEST 2007



Mauro Arnoldi wrote:
> Hi everybody!
> I'm new to this list and also to the R program.
> 
> I'd like to know if there is a function able to convert results into 
> Fractional form like my scientific calculator have. For example:
> 
>> 1/3
> [1] 0.3333333
> 
>> function_that_return_a_fraction_from_numbers(0.3333333)
> [1] 1/3


0.333333 is not equal 1/3, hence it is impossible to do that in a 
reliable manner.

Uwe Ligges


> Thanks
> 
> Mauro
>



More information about the R-help mailing list