[plt-scheme] Converting to integer?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Tue Sep 25 23:41:35 EDT 2007

First, 3.0 is a integer:

 > (integer? 3.0)
#t

I assume you want to get 3:

 > (inexact->exact 3.0)
3

Chongkai

Kilik wrote:
> Is there anyway to take the result of:
>
>   
>> (floor 3.5)
>>     
> 3.0
>
> and convert it to an integer?
>
> -Thx
>
>
>   



Posted on the users mailing list.