
If you want to remove the extra zeros (set decimal precision), you can use a dot (.) followed by a number that specifies how many digits that should be shown after the decimal point: float myFloatNum = 3.5; printf(“%f\n”, myFloatNum); // Default will show 6 digits after the decimal point printf(“%.1f\n”, myFloatNum); // Only show...