float *f* useful?

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;
It marks 0.2f as a float literal.
Essentially, 0.2f is of type float, while 0.2 is of type double.

http://en.cppreference.com/w/cpp/language/floating_literal
ok thx :D
closed account (Dy7SLyTq)
please dont double post
@ DTSCode: next time say "duplicate thread" and give the link.
http://www.cplusplus.com/forum/general/118321/

Double posting is something else.
closed account (Dy7SLyTq)
sorry my mistake i wasnt thinking. i meant duplicate thread
Topic archived. No new replies allowed.