ack/lang/fortran/lib/libF77/d_abs.c

10 lines
92 B
C
Raw Permalink Normal View History

1991-10-07 16:59:33 +00:00
#include "f2c.h"
double d_abs(x)
doublereal *x;
{
if(*x >= 0)
return(*x);
return(- *x);
}