Heya, sqrt most certainly does return non-zero values- which you can see by the output from a cout << sqrt(12);
If you're getting bad values, you may want to verify the other values you're passing in are correct. The only way to get a 0 from a sqrt is to pass in a zero as far as I know: