in reply to Re^2: Behaviour of int() unexpected
in thread Behaviour of int() unexpected

That rounds rather than truncate.