Language
C
Compiler
gcc 13.2.0
Options
Warnings
Compiler Default
no pedantic
Raw compiler options
-lm
#include <stdio.h>
#include <math.h>
#define PI 3.1415926535897932384626
int main(void) {
double x = 110, y = 50;
printf("%a\n", atan2(y, x) * 180 / PI);
printf("%a\n", atan2(y, x) / PI * 180);
return 0;
}
$ gcc prog.c -Wall -Wextra -lm0x1.871a7053ecab9p+4
0x1.871a7053ecab9p+4
Exit Code:
0