Hi
The following code gives the corresponding print:
Print:Code:floatValue = 12345.67890; printf("%.1f\n", floatValue); printf("%.2f\n", floatValue); printf("%.3f\n", floatValue); printf("%.4f\n", floatValue); printf("%.5f\n", floatValue);
12345.7
12345.68
12345.679
12345.6789
12345.67890
Is there a way to make this precision increment in a loop instead?
i.e.
BR,Code:for(int i=1; i < 6; i++){ printf("%.if\n", floatValue); i++; }
Flanderso