Wrong output when printing long double with printf in mingw

Viewed 69

I was trying to use long doubles in a bigger code but even this doesn't seem to work.

#include <stdio.h>
#include <math.h>

int main(){
    
    long double I = 10.0;
    long double YOU = 2.0;
    long double WE = I/YOU;
    printf("%Lf", I);


    return 0;
}

No errors, but the output is

-0.000000
0 Answers
Related