I am trying to take some square roots


I'm trying to take some square roots, and I've simplified the code down to
printf("%f\n", sqrt(144.));

but I'm still getting crazy numbers.

✍: Guest

Make sure that you have #included <math.h>, and correctly declared other functions returning double. (Another library function to be careful with is atof, which is declared in <stdlib.h>.)

2015-07-01, 1092👍, 0💬