[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] GSL_NEGZERO
From: |
Brian Gough |
Subject: |
Re: [Bug-gsl] GSL_NEGZERO |
Date: |
Thu, 14 Apr 2011 13:44:47 +0100 |
User-agent: |
Wanderlust/2.15.6 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO) |
At Wed, 13 Apr 2011 16:07:48 -0600,
Gerard Jungman wrote:
> Sorry, I read the output wrong. Just did it for myself.
> What the hell??
>
> #include <stdio.h>
>
> #define GENERIC_NEGZERO (-0)
> #define LESS_GENERIC_NEGZERO (-0.0)
Hi. Apparently floating point constants require a "." as in
LESS_GENERIC_NEGZERO. Integer constants don't include the -, so
GENERIC_NEGZERO is unary minus on integer 0 => integer zero. Promoted
to double after that, so +0.0.
- [Bug-gsl] GSL_NEGZERO, James Ward, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO, Brian Gough, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO, Gerard Jungman, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO, Brian Gough, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO, Gerard Jungman, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO, Gerard Jungman, 2011/04/13
- Re: [Bug-gsl] GSL_NEGZERO,
Brian Gough <=
- Re: [Bug-gsl] GSL_NEGZERO, Gerard Jungman, 2011/04/14
- Re: [Bug-gsl] GSL_NEGZERO, Brian Gough, 2011/04/15