swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Negative double weirdness


From: Marcus G. Daniels
Subject: Re: Negative double weirdness
Date: 30 Jun 1998 09:59:39 -0700

>>>>> "SE" == Steve Emsley <address@hidden> writes:

SE> 'trans' can be 0.0 and pow() returns a domain error if base is
SE> zero. So I guess it returns errno which seems to be a negative
SE> integer and, hence, my rad goes negative.

Huh?  trans wasn't zero, it was 6.410000e-01, and the exponent was was
positive (1.747446e+00).  Nothing seems particularly exceptional about this.
Also, pow doesn't literally return errno, that's just a global variable
you can look at.  I think the only other return values are -HUGE_VAL and NaN.

What platform and toolchain are you using? 


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]