Note inexact->exact 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #1, due Friday 8 November
Re: Note Observations on rational? and exact? (Mark Kittisopikul)
Date: 2002, Nov 07
From: Mark Kittisopikul <markkitt@uchicago.edu>

There is a procedure inexact->exact that creates exact representations. MIT Scheme Manual (Scroll up)

With this procedure, I'm observing glitches:


(inexact->exact 0.5)
;Value: 1/2

(inexact->exact 0.3)
;Value: 5404319552844595/18014398509481984

Why it doesn't evaluate 0.3 to 3/10 beats me.


Messages

1. Warning Don't use inexact->exact: it just pretends that something is exact by Mike O'Donnell, 2002, Nov 07

to: "inexact->exact"