Meaning of variable declaration

I am a beginner in C/C++. I have used this declaration several times :
<data type> <variable name> = value.
For example:
 
float angle = 0.0;

But I recently encountered this:


 
  float angle = 0.0f


What is the meaning of 'f' after 0.0?
f is a suffix that is used to specify the type of a literal.

http://www.cplusplus.com/doc/tutorial/constants/
Last edited on
Thanks a lot
Topic archived. No new replies allowed.