put in include for <math.h> so they will return doubles
[unix-history] / usr / src / usr.bin / pascal / libpc / SQRT.c
/* Copyright (c) 1979 Regents of the University of California */
static char sccsid[] = "@(#)SQRT.c 1.2 %G%";
#include "h01errs.h"
#include <math.h>
double
SQRT(value)
double value;
{
if (value < 0) {
ERROR(ESQRT, value);
return;
}
return sqrt(value);
}