Language
C
Compiler
gcc 13.2.0
Options
Warnings
C11(GNU)
no pedantic
Raw compiler options
-lm
#include <stdio.h>
#include <math.h>
int main(void) {
double v = sqrt(4503599761588224.0);
long double vl = sqrtl(4503599761588224.0);
printf("%.40f %.20a\n", v, v);
printf("%.40Lf %.20La\n", vl, vl);
return 0;
}
$ gcc prog.c -Wall -Wextra -std=gnu11 -lm67108865.0000000000000000000000000000000000000000 0x1.00000040000000000000p+26
67108864.9999999925494194030761718750000000000000 0x8.000001ffffffc0000000p+23
Exit Code:
0