[racket] integer-sqrt

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Sep 12 18:42:39 EDT 2014

The docs contradict themselves here :-) 


On Sep 12, 2014, at 6:27 PM, Robby Findler <robby at eecs.northwestern.edu> wrote:

> The docs, I believe.
> 
> Robby
> 
> On Fri, Sep 12, 2014 at 5:21 PM, Patrick Useldinger
> <uselpa.list at gmail.com> wrote:
>> Hi all,
>> 
>> according to the documentation, the above procedure accepts a *number* and
>> returns an integer.
>> 
>> But (at least in Racket 6.1) there's an error message stating that the
>> parameter needs to be an *integer*:
>> 
>> ---------------------------------------
>>> (integer-sqrt 151.29)
>>  integer-sqrt: contract violation
>>  expected: integer?
>>  given: 151.29
>> ---------------------------------------
>> 
>> Is this an error in the documentation or in the implementation?
>> 
>> Regards,
>> -Patrick
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.