Revision 1300

trunk/src/linad99/gaussher.cpp (revision 1300)
22 22
The sign of a number
23 23
\param x Double
24 24
*/
25
double sign (double x)
25
double sign(const double x)
26 26
{
27
  return x < 0.0 ? -1.0 : 0.0;
27
  return x < 0.0 ? -1.0 : 1.0;
28 28
}
29 29

  
30 30
/**

Also available in: Unified diff