If you want to round it, you have to write the following:
code:float a = 45.426;int b;b = a + 0.5;
This should work... BYE
code:float a = 45.426;int b;b = a + 0.5;
This should work... BYE
------------------
Dance with me......
int x;
float y;
y = 45.54525252552
x = y;
Will x be rounded to 46, or will the fraction just get chopped? And if it is chopped, how can I force it to round up if the fraction is greater than or equal to 1/2?