changed over/underflow for exp()

This commit is contained in:
eck 1990-04-09 16:54:09 +00:00
parent a3bd2c6734
commit 8c9149b058

View file

@ -36,12 +36,12 @@ exp(double x)
int n;
int negative = x < 0;
if (x <= M_LN_MIN_D) {
if (x < M_LN_MIN_D) errno = ERANGE;
if (x < M_LN_MIN_D) {
errno = ERANGE;
return 0.0;
}
if (x >= M_LN_MAX_D) {
if (x > M_LN_MAX_D) errno = ERANGE;
if (x > M_LN_MAX_D) {
errno = ERANGE;
return HUGE_VAL;
}