bug-gsl
[Top][All Lists]
Advanced

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

Re: [Bug-gsl] GSL_NEGZERO


From: Gerard Jungman
Subject: Re: [Bug-gsl] GSL_NEGZERO
Date: Wed, 13 Apr 2011 15:42:11 -0600

It depends on the intent. Usually, when a macro definition is written
that way, it's because the intent is for it to work in either a floating
point or an integer context. Since it's a macro, it has no way to
explain the intent.

If it is meant to have a specific type, maybe it should be
a constant of that type.

What does it mean to "print it out in hex"? What type variable
was initialized with GSL_NEGZERO?

--
G. Jungman


On Wed, 2011-04-13 at 21:30 +0100, Brian Gough wrote:
> At Wed, 13 Apr 2011 10:03:47 -0400,
> James Ward wrote:
> > 
> > Should GSL_NEGZERO be defined as -0.0 instead of -0? When I print out
> > GSL_NEGZERO in hex, I am seeing:
> > 
> > 0x0000000000000000
> > 
> > instead of:
> > 
> > 0x8000000000000000
> > 
> 
> Yes, you're right, it should be.  I'll fix that.  Thanks.






reply via email to

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