Contact: aviboots(AT)netvision.net.il
40,764 questions
53,140 answers
573 users
#include <stdio.h> #include <math.h> int main(void) { double d = atan(1); printf("%lf", d); } /* run: 0.785398 */
#include <stdio.h> #include <math.h> int main(void) { float f = atanf(0.5); printf("%f", f); } /* run: 0.463648 */
#include <stdio.h> #include <math.h> int main(void) { long double ld = atan(-1.0); printf("%Lf", ld); } /* run: -0.785398 */