Okay, I'm aware that this is highly inefficient, that this is reinventing the wheel, etc., etc. ; however, I'm a curious guy, and I'd like to be able to say that I could write my own square root function before using the compiler's. But I'm getting nowhere as to thinking up just how to do something like that. Any ideas? Thanks.