Forum Discussion
NOHWJ
New Contributor
5 years agoprint float type
Hi, I'm trying to print float type data like this. ----------------------- #include <stdio.h> float data=0.123; printf("%f",data); ---------------------- but, it shows empty in console display...
EricMunYew_C_Intel
Frequent Contributor
5 years agocan you try printf("%.3f",data);