Reading in long dual C programming language

How to read in long double in C?

+2


source to share


4 answers


long double x; scanf("%Lf", &x);



+10


source


Remember that "long double" is synonymous with "double" in Visual Studio.



http://blogs.msdn.com/ericflee/archive/2004/06/10/152852.aspx

+3


source


Any hrnt ( scanf("%Lf", &x)

) answer or

long double x;
if(read(fd,&x,sizeof(x))!=sizeof(x)) printf("Oops\n");

      

the question is very vague.

+2


source


you can use the% ld format specifier to read long double variables.

0


source







All Articles