Commit 20b5ea22 authored by Morten Welinder's avatar Morten Welinder

Oops. Messed up sign in PV.

parent e25f98b5
1999-05-22 Morten Welinder <terra@diku.dk>
* src/fn-financial.c (gnumeric_pv): Revert last chance. (Bogosity
is in me.)
1999-05-22 Morten Welinder <terra@diku.dk>
* src/sheet.c (sheet_selection_to_string): Delete unused variable
......
1999-05-22 Morten Welinder <terra@diku.dk>
* src/fn-financial.c (gnumeric_pv): Revert last chance. (Bogosity
is in me.)
1999-05-22 Morten Welinder <terra@diku.dk>
* src/sheet.c (sheet_selection_to_string): Delete unused variable
......
1999-05-22 Morten Welinder <terra@diku.dk>
* src/fn-financial.c (gnumeric_pv): Revert last chance. (Bogosity
is in me.)
1999-05-22 Morten Welinder <terra@diku.dk>
* src/sheet.c (sheet_selection_to_string): Delete unused variable
......
1999-05-22 Morten Welinder <terra@diku.dk>
* src/fn-financial.c (gnumeric_pv): Revert last chance. (Bogosity
is in me.)
1999-05-22 Morten Welinder <terra@diku.dk>
* src/sheet.c (sheet_selection_to_string): Delete unused variable
......
......@@ -378,7 +378,8 @@ gnumeric_pv (struct FunctionDefinition *i, Value *argv [], char **error_string)
fvifa = calculate_fvifa(rate,nper);
return value_new_float ((pmt * (1 + rate * type) * fvifa - fv) / pvif);
return value_new_float ( ( (-1.0) * fv - pmt * ( 1.0 + rate * type ) * fvifa ) / pvif );
}
static char *help_npv = {
......
......@@ -378,7 +378,8 @@ gnumeric_pv (struct FunctionDefinition *i, Value *argv [], char **error_string)
fvifa = calculate_fvifa(rate,nper);
return value_new_float ((pmt * (1 + rate * type) * fvifa - fv) / pvif);
return value_new_float ( ( (-1.0) * fv - pmt * ( 1.0 + rate * type ) * fvifa ) / pvif );
}
static char *help_npv = {
......
......@@ -378,7 +378,8 @@ gnumeric_pv (struct FunctionDefinition *i, Value *argv [], char **error_string)
fvifa = calculate_fvifa(rate,nper);
return value_new_float ((pmt * (1 + rate * type) * fvifa - fv) / pvif);
return value_new_float ( ( (-1.0) * fv - pmt * ( 1.0 + rate * type ) * fvifa ) / pvif );
}
static char *help_npv = {
......
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