Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!att!pacbell.com!ames!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: # to the nth power Message-ID: <14427@smoke.brl.mil> Date: 11 Nov 90 08:39:26 GMT References: <1990Nov10.224939.23622@dirtydog.ima.isc.com> <4239@goanna.cs.rmit.oz.au> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8 In article <4239@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes: >Does anyone know why C hasn't got a round() function and why ANSI >failed to add one? Because it is trivial to roll your own: #define Round( d ) floor( (d) + 0.5 ) /* requires */ and because there was no established existing practice (e.g. the library Base Document did not specify such a function).