What does the "f" stand for in this code?


#1

One thing I’ve wondered in the back of my mind is what does the “f” mean and why is it used in code such as this:

const float radius = jmin (width / 2, height / 2) - 4.0f;

Thanks!


#2

It tells the compiler to generate the 4.0 as a float (rather than a double).


#3

Thanks!