I\'ve some lists and more complex structures containing floats. When printing them, I see the floats with a lot of decimal digits, but when printing, I don\'t need all of th
If you are using C language, you can either use #define or "%*.*f" to do that, e.g.
#define
"%*.*f"
printf("%*.*f",4,2,variable);