Allowing negative square root

This is a discussion on Allowing negative square root within the C++ Programming forums, part of the General Programming Boards category; I don't have a clue how to "break" this to actually return a negative square, but that is what I ...

Allowing negative square root

I don't have a clue how to "break" this to actually return a negative square, but that is what I need to figure out. For example, the sqrt of -100 should be -10, but I just get the error telling me that's silly (-1#.IND).