Is there a way to convert a float or double to an int without triggering a warning?
I'm kinda anal and hate having warnings show up when I compile.
Printable View
Is there a way to convert a float or double to an int without triggering a warning?
I'm kinda anal and hate having warnings show up when I compile.
You can just cast it.
Code:float f = 10.f;
int x;
x = (int)f;
Ah thanks