Kaydet (Commit) 8ba9dfe2 authored tarafından Johnny_M's avatar Johnny_M Kaydeden (comit) Eike Rathke

Translate German variable names in Calc (financial)

These names of variables correspond to German function names in Calc and were
translated to their English equivalents. For used translations, see, e.g.,
https://translations.documentfoundation.org/de/libo54_help/translate/#search=RMZ&sfields=target&soptions=exact,case

Note: The translation here is equal to the translation of variables done
on https://gerrit.libreoffice.org/43078 , etc.

Change-Id: I1010a3ddf58a0d32e97bfb55090dc7aacc0b91b7
Reviewed-on: https://gerrit.libreoffice.org/43692Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst a67d2aa6
......@@ -1231,39 +1231,39 @@ double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal
}
double GetRmz( double fZins, double fZzr, double fBw, double fZw, sal_Int32 nF )
double GetRmz( double fInterest, double fNper, double fPv, double fFv, sal_Int32 nPayType )
{
double fRmz;
if( fZins == 0.0 )
fRmz = ( fBw + fZw ) / fZzr;
double fPmt;
if( fInterest == 0.0 )
fPmt = ( fPv + fFv ) / fNper;
else
{
double fTerm = pow( 1.0 + fZins, fZzr );
if( nF > 0 )
fRmz = ( fZw * fZins / ( fTerm - 1.0 ) + fBw * fZins / ( 1.0 - 1.0 / fTerm ) ) / ( 1.0 + fZins );
double fTerm = pow( 1.0 + fInterest, fNper );
if( nPayType > 0 )
fPmt = ( fFv * fInterest / ( fTerm - 1.0 ) + fPv * fInterest / ( 1.0 - 1.0 / fTerm ) ) / ( 1.0 + fInterest );
else
fRmz = fZw * fZins / ( fTerm - 1.0 ) + fBw * fZins / ( 1.0 - 1.0 / fTerm );
fPmt = fFv * fInterest / ( fTerm - 1.0 ) + fPv * fInterest / ( 1.0 - 1.0 / fTerm );
}
return -fRmz;
return -fPmt;
}
double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF )
double GetZw( double fInterest, double fNper, double fPmt, double fPv, sal_Int32 nPayType )
{
double fZw;
if( fZins == 0.0 )
fZw = fBw + fRmz * fZzr;
double fFv;
if( fInterest == 0.0 )
fFv = fPv + fPmt * fNper;
else
{
double fTerm = pow( 1.0 + fZins, fZzr );
if( nF > 0 )
fZw = fBw * fTerm + fRmz * ( 1.0 + fZins ) * ( fTerm - 1.0 ) / fZins;
double fTerm = pow( 1.0 + fInterest, fNper );
if( nPayType > 0 )
fFv = fPv * fTerm + fPmt * ( 1.0 + fInterest ) * ( fTerm - 1.0 ) / fInterest;
else
fZw = fBw * fTerm + fRmz * ( fTerm - 1.0 ) / fZins;
fFv = fPv * fTerm + fPmt * ( fTerm - 1.0 ) / fInterest;
}
return -fZw;
return -fFv;
}
// financial functions COUP***
......
......@@ -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 fZins, double fZzr, double fBw, double fZw, sal_Int32 nF );
double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF );
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 );
/// @throws css::uno::RuntimeException
/// @throws css::lang::IllegalArgumentException
......
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