summaryrefslogtreecommitdiff
path: root/scaddins/source
diff options
context:
space:
mode:
authorJohnny_M <klasse@partyheld.de>2017-10-29 09:58:21 +0100
committerEike Rathke <erack@redhat.com>2017-11-02 11:26:23 +0100
commit3133f128038fbc6e9964ebd637c05401c13d77ac (patch)
tree9a9f8e24ab2b1d1095aad3ea99efe83f34d9b1c5 /scaddins/source
parent570eed8ce4761cea0aa74efc85c182bc4af45493 (diff)
Correct German variable names translation in Calc (financial)
This aligns the translation of the "Zins" argument of the financial functions to "Rate", as used in the function documentation in English. The original translation was done by the same author recently in the commit 8ba9dfe27382626e97fb4ab705b7ad056725a800. Compare (as in MS Excel): German: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two/de#RMZ English: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two#PMT Change-Id: Ifa125d94a639c91c454d7b540f86feeecea250ff Reviewed-on: https://gerrit.libreoffice.org/44021 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'scaddins/source')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx20
-rw-r--r--scaddins/source/analysis/analysishelper.hxx4
2 files changed, 12 insertions, 12 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 0d950c314629..9594f8e6d6e6 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1231,36 +1231,36 @@ double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal
}
-double GetRmz( double fInterest, double fNper, double fPv, double fFv, sal_Int32 nPayType )
+double GetRmz( double fRate, double fNper, double fPv, double fFv, sal_Int32 nPayType )
{
double fPmt;
- if( fInterest == 0.0 )
+ if( fRate == 0.0 )
fPmt = ( fPv + fFv ) / fNper;
else
{
- double fTerm = pow( 1.0 + fInterest, fNper );
+ double fTerm = pow( 1.0 + fRate, fNper );
if( nPayType > 0 )
- fPmt = ( fFv * fInterest / ( fTerm - 1.0 ) + fPv * fInterest / ( 1.0 - 1.0 / fTerm ) ) / ( 1.0 + fInterest );
+ fPmt = ( fFv * fRate / ( fTerm - 1.0 ) + fPv * fRate / ( 1.0 - 1.0 / fTerm ) ) / ( 1.0 + fRate );
else
- fPmt = fFv * fInterest / ( fTerm - 1.0 ) + fPv * fInterest / ( 1.0 - 1.0 / fTerm );
+ fPmt = fFv * fRate / ( fTerm - 1.0 ) + fPv * fRate / ( 1.0 - 1.0 / fTerm );
}
return -fPmt;
}
-double GetZw( double fInterest, double fNper, double fPmt, double fPv, sal_Int32 nPayType )
+double GetZw( double fRate, double fNper, double fPmt, double fPv, sal_Int32 nPayType )
{
double fFv;
- if( fInterest == 0.0 )
+ if( fRate == 0.0 )
fFv = fPv + fPmt * fNper;
else
{
- double fTerm = pow( 1.0 + fInterest, fNper );
+ double fTerm = pow( 1.0 + fRate, fNper );
if( nPayType > 0 )
- fFv = fPv * fTerm + fPmt * ( 1.0 + fInterest ) * ( fTerm - 1.0 ) / fInterest;
+ fFv = fPv * fTerm + fPmt * ( 1.0 + fRate ) * ( fTerm - 1.0 ) / fRate;
else
- fFv = fPv * fTerm + fPmt * ( fTerm - 1.0 ) / fInterest;
+ fFv = fPv * fTerm + fPmt * ( fTerm - 1.0 ) / fRate;
}
return -fFv;
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 6acccd5f4000..2b77d2e6a89c 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -155,8 +155,8 @@ double GetOddlprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_In
/// @throws css::lang::IllegalArgumentException
double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest,
double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase );
-double GetRmz( double fInterest, double fNper, double fPv, double fFv, sal_Int32 nPayType );
-double GetZw( double fInterest, double fNper, double fPmt, double fPv, sal_Int32 nPayType );
+double GetRmz( double fRate, double fNper, double fPv, double fFv, sal_Int32 nPayType );
+double GetZw( double fRate, double fNper, double fPmt, double fPv, sal_Int32 nPayType );
/// @throws css::uno::RuntimeException
/// @throws css::lang::IllegalArgumentException