Quote Originally Posted by whiteflags View Post
>> Can you explain me %.8f ?
Never used the printf function before, have you? It prints the double variable that you supply to 8 places after the decimal point.

>> powf?? where did that come from?
Same place pow comes from: there is a family of functions for pow that take different arguments and are named accordingly. powf is the variation that takes float arguments.
Ohk . I have used, but never with the %.8f format specifiers..
And i got error 1 exit status.. i changed powf to pow then it worked fine.

if i change the return to
Code:
return(s_input*s_input);
will there anything wrong? cuz it will save me from adding math.h, if i had to add math.h then why would i make a squaring function anyways??