Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hropus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!hropus!ka From: ka@hropus.UUCP (Kenneth Almquist) Newsgroups: net.lang.c Subject: Re: integer division in ANSI C Message-ID: <316@hropus.UUCP> Date: Sun, 2-Mar-86 01:07:32 EST Article-I.D.: hropus.316 Posted: Sun Mar 2 01:07:32 1986 Date-Received: Sun, 2-Mar-86 19:13:15 EST References: <695@sftig.UUCP> Organization: Bell Labs, Holmdel, NJ Lines: 22 > This issue reveals the fundamental dichotomy in C -- between > the systems-programmers' language and the application-programmers' > language... Yes. I've never understood why anybody would *want* to do applications programming in C, but then I've never understood why people want to use Fortran and Cobol either... The proposed functions will not fully solve the problem if C is used by fallible programmers, but then only those of us who are perfect have any business using a dangerous language like C anyway :-). I would suggest making the routines simpler to use by providing separate routines for division and remainder, as this will encourage more people to use them when necessary. This would also mean that these routines could be replaced with simple macros on machines that do division the Fortran way (most of them). It would also be nice to have a modulo function. In my view, this would be more useful than a remainder function. Kenneth Almquist ihnp4!houxm!hropus!ka (official name) ihnp4!opus!ka (shorter path)