On the official API doc, it says:
Returns the value of this number as an Int, which may involve rounding or truncation.
I want truncation, but not sure. Can anyone explain the exact meaning of may involve rounding or truncation
?
p.s.: In my unit test, (1.7).toInt()
was 1, which might involve truncation.