[plt-scheme] inexact->exact

From: Alex Peake (apeake at comac.com)
Date: Fri May 23 18:57:15 EDT 2003

Is there a faster way to convert an inexact integer (4.0) to an exact integer (4)?
(Context: I am using the result of floating point math to index into a vector for a translation
value)

I tried inexact->exact and it is very slow. I can find no other references in Help Desk (with my
search guesses anyway).

Alex



Posted on the users mailing list.