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 16:07:48 -0600

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)

int main () {
  double x = -0.0;
  double y = GENERIC_NEGZERO;
  double z = LESS_GENERIC_NEGZERO;
  printf("%a %a %a %a\n", 0.0, x, y, z);

  return 0;
}

$./a.out 
0x0p+0 -0x0p+0 0x0p+0 -0x0p+0






reply via email to

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