Numbers in C++

Hello

I want to know what does numbers like 0.0f stand for? Are they hexadecimal? And if yes, can anyone please tell me how to convert them to decimal?

Thanks
HI,

0.0f is a float value , so it forces the number to be treated as a single precision floating point number (float).

Normally, you'd only use this for assigning to a float:

float xxx = 0.0f;

When you do:

double xxx = 0.0;

It uses the standard, which is equivalent to:

double xxx = 0.0l; // long double
Thanks, but I didn't quite understand what you meant. Can you please elaborate a bit more?
Topic archived. No new replies allowed.