From: Lyle Johnson Date: 2003-03-25T00:58:39+09:00 Subject: Re: Newbie question: 9/5=1 ? Paul Brannan wrote: > On Sat, Mar 22, 2003 at 04:37:40AM +0900, Joel VanderWerf wrote: >> I guess extension writers should not rely on 1/2 == 0 . > > Do you think this is reasonable? > > What method should I call if I want integer division? Technically, it looks like you can call 'div', i.e. 9.div(5) will still return the standard integer division result. But this is completely non-obviously, and I only learned it after digging in the source code.