Floating point problems



On 1/29/2012 6:45 PM, Andrew Davis wrote:
> Is there a standard way to convert between the two forms in memory 
> then? .8 <-> 4/5 , -8.14 <-> -814/100?
rationalize(x) gets the EXACT rational equivalent.

ratdisrep(rat(x))  gets an approximation, depending on ratepsilon.  Read 
the  manual.