Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!alice!ark From: ark@alice.UUCP Newsgroups: comp.lang.c Subject: Re: fabs(x) vs. (x) < 0 ? -(x) : (x) Message-ID: <6523@alice.uUCp> Date: Thu, 8-Jan-87 16:59:30 EST Article-I.D.: alice.6523 Posted: Thu Jan 8 16:59:30 1987 Date-Received: Fri, 9-Jan-87 01:44:34 EST References: <4477@ut-ngp.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 7 Jeff Rodrigues asks why one should bother with fabs(x) instead of making it a macro. One answer is that if fabs were a macro, then fabs(x*x-y*y) would evaluate x*x-y*y twice on most C implementations.