title: Truncated versus floored division in Python
body: <p>To establish context, I'm talking about integer arithmetic only, on large integers so going via floating point isn't an option, and using negative numbers so the difference between floored and truncated division matters.</p>
  
  <p>When performing division on negative integers, typical hardware and C family programming languages give the truncated result e.g. 1 / -2 = 0. Python 2 gives the floored result e.g. 1 / -2 = -1.</p>
  
  <p>Notwithstanding arguments about which is intrinsically better, is there a way to get Python to give the truncated result? Does it make any difference if you use Python 3 instead of 2?</p>