Originally Posted by UK31337
To get the square root of a number, all you need to do is raise it to the power of a half.
So, 9^0.5 = sqrt(9) = 3.
But <cmath> is a far more elegant way of doing it, IMHO.
oh yes of course there are other methods to do the same calculations. I do agree though, that cmath does make things so much easier and less work. Programmers, after all, I find are lazy and want to get things done in the quickest way possible with the least amount of code
- ooh, this was my 666th post.....devilish!