Home > Back-end >  Print long double type value
Print long double type value

Time:09-18


Printf () function to print Long double type of value, the output is 0???
The compiler is mingw64

CodePudding user response:

Printf (" % lf ", num)

CodePudding user response:

reference 1st floor CHXCHXKKK response:
printf (" % lf ", num)

Want to use % liberian output long double, because a double % lf, and add a long, so it is % LLF, actually % lf can be (has been);

Is long double C99 standard support, also want to see if your compiler support

CodePudding user response:

For the printf () function of the usage, please refer to the "c + + printf () function USES 10-4"
Wish I could help you!
  • Related