delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/14/13:15:53

Date: Thu, 14 Jan 1999 19:15:45 +0100 (MET)
Message-Id: <199901141815.TAA14603@tyr.diku.dk>
From: Morten Welinder <terra AT diku DOT dk>
To: eliz AT is DOT elta DOT co DOT il
Cc: djgpp-workers AT delorie DOT com
In-reply-to: <B0000063079@stargate.astr.lu.lv> (pavenis@lanet.lv)
Subject: Re: What should libm functions return for bad args
References: <B0000063079 AT stargate DOT astr DOT lu DOT lv>
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?  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019