From: Jari Williamsson Date: 2007-12-18T06:12:03+09:00 Subject: Re: dividing by two and rounding up Tom Norian wrote: > How do I divide a number (integer) by 2 and get a result that is like: > > 5/2 I want 3 > 6/2 I want 3 > 7/2 I want 4 Here's another way, one integer division, but 2 instructions: a = 5.divmod(2) result = a[1] + a[2] Best regards, Jari Williamsson