Like the comment says it’s converting to 28.4 fixed-point. This means the 32-bit integer is considered to have 28 bits left of the radix point and 4 bits to the right. Another way to say it is that it’s counting the coordinates in units equal to 1/16th of a pixel (2\^4 = 16). So the float pixel values are multiplied by 16 first. You can google for fixed point if you’re not familiar with it.

this is such a basic question I know and I am sorry, but I don’t know C at all and there I found this piece of code with rounding float to the nearest integer with sub pixel accuracy which is this “ 16.0f * “

Cited Code

// 28.4 fixed-point coordinates

const int Y1 = iround(16.0f * v1.y);

const int Y2 = iround(16.0f * v2.y);

const int Y3 = iround(16.0f * v3.y);

Could someone explain to me what exactly means “16.0f” I tried to Google it but without any luck.

Regards

D.