Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hao!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: modulus fn with negatives Message-ID: <4509@brl-tgr.ARPA> Date: Mon, 10-Sep-84 12:41:21 EDT Article-I.D.: brl-tgr.4509 Posted: Mon Sep 10 12:41:21 1984 Date-Received: Fri, 14-Sep-84 08:59:37 EDT References: <13079@sri-arpa.UUCP>, <8213@umcp-cs.UUCP> Organization: Ballistics Research Lab Lines: 6 The "most negative number" is always a problem on 2's complement machines. Rather than have every routine have a special case for this, we usually prohibit it the same way we prohibit numbers larger than the largest. Sometimes one can handle the "most negative number" without making a special case; atoi() is an example (use a negative accumulator).