+ 2

whatd does the width in %5.2f?

i ve seen in the explanation this %[-] [widht].... and i tried to change the width from %5.2f and i got the same output

22nd Aug 2019, 4:25 AM
Capmare
2 Answers
+ 4
5 or more numbers before the decimal point and two after it.
22nd Aug 2019, 8:59 AM
Sonic
Sonic - avatar
+ 1
here is a quick reference for troubleshooting your issue... https://en.cppreference.com/w/cpp/io/c/fprintf
22nd Aug 2019, 4:43 AM
BroFar
BroFar - avatar