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.




_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to