why do we need float *f*?

i learned that everytime we use a float we have to put an f at the end of the number, but if i forgot the program works anyways ... so is it needed?

for Example:

float speed = 0.2f;


thx for help guys :D
closed account (Dy7SLyTq)
its just explicit. this could be files under conversion i believe. another example is int c = 10l but of course you could do long c = 10 or long c(10)
i googled ..
0.2 == double
and
0.2f == float
Topic archived. No new replies allowed.