|
If you think about it, there's no way to take an approximation by itself and make it exact. You have to have some additional information to know that the error has been reduced to 0.
This is a nice instructive case. What you type as 0.3 is converted to binary. Marking it "exact" makes Scheme treat it as an exact rational, with a big power of 2 as the numerator. We can do this whole project with exact rationals. There's no need to bring in inexact guys at all. If you test an inexact number for membership in an interval, the result is meaningless unless you have some bound on the error in the inexact number. Mike O'D. |
to: