I am wondering what the difference is between these two variables in C:
float price = 3.00;
and
float price = 3.00f;
3.00 is interpreted as a double, as opposed to 3.00f which is seen by the compiler as a float.
3.00
double
3.00f
float
The f suffix simply tells the compiler which is a float and which is a double.
f
See MSDN (C++)