2.0f Numbers

Hello,

I am new to OF and C++.

I have an array that stores integers and it is divided by 2.0f.

What does 2.0f mean? What does the f stand for?

Thanks,

Trisha

What does 2.0f mean? What does the f stand for?

2.0f is the number 2 taken as float number, f is for float usually is a precaution for prevent losing number of decimals.

hope it helps,

cheers :slight_smile:

Thanks.