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

Re: A85: 16-bit integer Square Root




On Thu, 12 Mar 1998, Erik L Gillespie wrote:

> 
> Very nice.  It works good.  One thing though, and I won't have time to
> look at it because I'm going on vacation is that when I tried to take the
> square root of 3025 it gave me 54 as the answer when the answer is 55.  I
> understand where this comes from in the rounding down, but this function
> works when you don't have a perfect square.  The only exception I found
> was any multiple of 4 (4, 16, etc.)

That's strange... It's probably easy to fix though, I'll have a look at
it.



References: