Date: Thu, 14 Jan 1999 19:15:45 +0100 (MET) Message-Id: <199901141815.TAA14603@tyr.diku.dk> From: Morten Welinder To: eliz AT is DOT elta DOT co DOT il Cc: djgpp-workers AT delorie DOT com In-reply-to: (pavenis@lanet.lv) Subject: Re: What should libm functions return for bad args References: Reply-To: djgpp-workers AT delorie DOT com (A great display of consistency:) Yes, Sally? uname -a HP-UX tyr B.10.20 A 9000/735 2013360678 two-user license Yes, Sally? awk 'BEGIN { print log(0), log(-1), log(100) }' -1.79769e+308 awk: The log parameter to a math library function is not in the domain. The source line number is 1. 1 4.60517 Yes, Sally? awk 'BEGIN { print exp(0), exp(1000000), exp(0.5) }' 1 awk: The exp return value of a math library function is out of range. The source line number is 1. 1 1.64872 Yes, Sally?