Since in many cases sqrt is used for float numbers, I think it should be replaced by sqrtf, which would make the code cleaner (no casting) and should also be faster in some systems! Any comments? Regards Panagiotis Papadakos