Commit 0039c920 authored by Morten Welinder's avatar Morten Welinder
Browse files

Refix ATAN2.

parent 8a51b8ce
......@@ -486,8 +486,8 @@ static char *help_atan2 = {
static Value *
gnumeric_atan2 (FunctionEvalInfo *ei, Value **args)
{
return value_new_float (atan2 (value_get_as_float (args [0]),
value_get_as_float (args [1])));
return value_new_float (atan2 (value_get_as_float (args [1]),
value_get_as_float (args [0])));
}
static char *help_ceil = {
......
......@@ -486,8 +486,8 @@ static char *help_atan2 = {
static Value *
gnumeric_atan2 (FunctionEvalInfo *ei, Value **args)
{
return value_new_float (atan2 (value_get_as_float (args [0]),
value_get_as_float (args [1])));
return value_new_float (atan2 (value_get_as_float (args [1]),
value_get_as_float (args [0])));
}
static char *help_ceil = {
......
......@@ -486,8 +486,8 @@ static char *help_atan2 = {
static Value *
gnumeric_atan2 (FunctionEvalInfo *ei, Value **args)
{
return value_new_float (atan2 (value_get_as_float (args [0]),
value_get_as_float (args [1])));
return value_new_float (atan2 (value_get_as_float (args [1]),
value_get_as_float (args [0])));
}
static char *help_ceil = {
......
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