Re: very simple questions about integer division

  • From: Philipp Kutin <philipp.kutin@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 31 Aug 2012 13:58:11 +0200

On Fri, Aug 31, 2012 at 1:39 PM, Philipp Kutin <philipp.kutin@xxxxxxxxx> wrote:
> These two are equivalent, but not the same as C integer
> division, which is the remainder of a/b assuming truncated division.
Oops, that was a thinko, I had '%' in the back of my mind! Of course
division isn't the same as remainder, but they're intimately related.
s|the remainder of a/b assuming||

-p.

Other related posts: