In C# if I want to convert a double (1.71472) to an int then I get the answer 2. If I do this in Java using intValue() method, I get 1 as the answer.
Does Java round down on conversions?
Why do the Java API docs have such scant information about their classes i.e.
Returns the value of the specified number as an int. This may involve rounding or truncation.
A bit more info about the rounding would have been helpful!