0
Meaning of .2f
C language
3 Réponses
+ 2
If you add %.2f in scanf then output will show 2 digit after decimal!
If you add %.nf in scanf then output will show n digits after the decimal.
+ 4
KARTHIK TELU It's just a limit
Example : Your output with %f is 2.333333
When you use %.2f the output will be like 2.33
+ 1
It also mean 0.2 in float
float x = .2f;