Talk:Modular inverse

From Rosetta Code
Revision as of 16:38, 14 November 2013 by rosettacode>Stevengj (Handle a < 0?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Handle a < 0 ?

The problem is perfectly well defined for a < 0, but many of the implementations (e.g. the C version and translations thereof) do not handle this case correctly. Is this a bug in the implementations or in the problem specification.

— Steven G. Johnson (talk) 16:38, 14 November 2013 (UTC)