lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 If the quotient a/b is representable, the _expression_ (a/b)*b + a%b shall equal a."
>
> [...]
>
> My head hurts.

I found the description of algorithms and history presented in this paper to be very useful:

The Euclidean Definition of the Functions div and mod
RAYMOND T. BOUTE
University of Nijmegen
(c)1992 ACM


e