Commit 089173ee authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

http://bugzilla.gnome.org/show_bug.cgi?id=62762 base > 0 && base != 1 are

2001-10-21  Jody Goldberg <jgoldberg@home.com>

	http://bugzilla.gnome.org/show_bug.cgi?id=62762
	* fn-math.c (gnumeric_log) : base > 0 && base != 1 are defined.
parent 2d16a4cc
......@@ -988,6 +988,7 @@ static char *help_log = {
"@DESCRIPTION="
"LOG computes the logarithm of @x in the given base @base. "
"If no @base is given LOG returns the logarithm in base 10. "
"@base must be > 0. and can not equal 1. "
"This function is Excel compatible. "
"\n"
"@EXAMPLES=\n"
......@@ -1008,7 +1009,7 @@ gnumeric_log (FunctionEvalInfo *ei, Value **argv)
base = 10;
else {
base = value_get_as_float (argv[1]);
if (base <= 1)
if (base == 1. || base <= 0.)
return value_new_error (ei->pos, gnumeric_err_NUM);
}
......
2001-10-21 Jody Goldberg <jgoldberg@home.com>
http://bugzilla.gnome.org/show_bug.cgi?id=62762
* fn-math.c (gnumeric_log) : base > 0 && base != 1 are defined.
2001-10-18 Jody Goldberg <jgoldberg@home.com>
* Release 0.72
......
......@@ -988,6 +988,7 @@ static char *help_log = {
"@DESCRIPTION="
"LOG computes the logarithm of @x in the given base @base. "
"If no @base is given LOG returns the logarithm in base 10. "
"@base must be > 0. and can not equal 1. "
"This function is Excel compatible. "
"\n"
"@EXAMPLES=\n"
......@@ -1008,7 +1009,7 @@ gnumeric_log (FunctionEvalInfo *ei, Value **argv)
base = 10;
else {
base = value_get_as_float (argv[1]);
if (base <= 1)
if (base == 1. || base <= 0.)
return value_new_error (ei->pos, gnumeric_err_NUM);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment