summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-30 10:57:40 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-30 11:12:24 +0200
commitdcda429221ea2a7094835eee792f749a6ae79bc4 (patch)
tree353ac3c036e701b09cb74b749e0cc50852a511ac /sc
parente886f9ad66cf0e1961deebb30a97e0b35bb5a816 (diff)
interpr: fPeriodn -> fPeriods
Change-Id: I21b76d2d121b27c5b4aeb676948786ab91bff0b7
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr2.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 06570079c416..512e756048ed 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -1866,14 +1866,14 @@ void ScInterpreter::ScEffektiv()
nFuncFmtType = NUMBERFORMAT_PERCENT;
if ( MustHaveParamCount( GetByte(), 2 ) )
{
- double fPeriodn = GetDouble();
+ double fPeriods = GetDouble();
double fNominal = GetDouble();
- if (fPeriodn < 1.0 || fNominal <= 0.0)
+ if (fPeriods < 1.0 || fNominal <= 0.0)
PushIllegalArgument();
else
{
- fPeriodn = ::rtl::math::approxFloor(fPeriodn);
- PushDouble(pow(1.0 + fNominal/fPeriodn, fPeriodn) - 1.0);
+ fPeriods = ::rtl::math::approxFloor(fPeriods);
+ PushDouble(pow(1.0 + fNominal/fPeriods, fPeriods) - 1.0);
}
}
}
@@ -1883,14 +1883,14 @@ void ScInterpreter::ScNominal()
nFuncFmtType = NUMBERFORMAT_PERCENT;
if ( MustHaveParamCount( GetByte(), 2 ) )
{
- double fPeriodn = GetDouble();
+ double fPeriods = GetDouble();
double fEffective = GetDouble();
- if (fPeriodn < 1.0 || fEffective <= 0.0)
+ if (fPeriods < 1.0 || fEffective <= 0.0)
PushIllegalArgument();
else
{
- fPeriodn = ::rtl::math::approxFloor(fPeriodn);
- PushDouble( (pow(fEffective + 1.0, 1.0 / fPeriodn) - 1.0) * fPeriodn );
+ fPeriods = ::rtl::math::approxFloor(fPeriods);
+ PushDouble( (pow(fEffective + 1.0, 1.0 / fPeriods) - 1.0) * fPeriods );
}
}
}