» Tue Mar 15, 2011 4:27 am
That's correct - when a floating point value such as 158.08 is assigned to an integer variable (i.e one declared using the "int", "short" or "long" keyword), the value will be truncated (i.e. rounded down) after the decimal point. If you want to round values up as well as down, then add 0.5 before assigning them.
Cipscis