include math.h to insure correct return type
[unix-history] / usr / src / usr.bin / pascal / libpc / LN.c
/* Copyright (c) 1979 Regents of the University of California */
static char sccsid[] = "@(#)LN.c 1.3 %G%";
#include <math.h>
#include "h01errs.h"
double
LN(value)
double value;
{
if (value <= 0) {
ERROR(ELN, value);
return;
}
return log(value);
}