[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expert System



Hi all.  

I believe I can answer your first question.  All you have to do to convert
7/2 into an inexact answer is use the following syntax.  

(exact->inexact (/ 7 2))  --->  3.5
or
(exact->inexact 7/2)  ---> 3.5

Scheme also supports the inexact->exact operation.  More help with numerical
operations can be found in section 6.2.5 of the Revised(5) Report on the
Algorithmic Language Scheme.  This comes with DrScheme.  Just go into the
help desk and click on manuals and it should be in that list.  

Hope this helps,
    Tom B.