Fundamentals of CS I (CS151 2001S) : Reference

exact->inexact: convert exact to inexact

Procedureexact->inexact
Parametersn, a number
PurposeApproximates an exact number.
ProducesAn inexact number (n approximated to some degree).
PreconditionsOnly one parameter (verified).
n is a number (verified).
PostconditionsThe result is an inexact number (even if the approximation should result in the same value).
Examples
> (exact->inexact 3/4)
0.75
> (exact? (exact-gt;inexact 0))
#f

Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This page was generated by Siteweaver on Thu Feb 22 05:47:57 2001.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2001S/exact-to-inexact.html.
You may validate this page's HTML.
The source was last modified Fri Jan 26 00:01:20 2001.