diff options
author | Eike Rathke <erack@redhat.com> | 2014-07-15 16:56:37 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-07-15 17:31:23 +0200 |
commit | ffe7faf8950eba541606d22ce7a50483fd4c84f4 (patch) | |
tree | a7abbc4baa7a36e581c9a857a8147b1eced1ca6b | |
parent | 8d3454072d0f68c780e28eb56111d4fe2f84736d (diff) |
CID#1038293 Division or modulo by float zero (DIVIDE_BY_ZERO)
Change-Id: I9115f34d5957fc974a8f693f97b27f4534344f62
-rw-r--r-- | sc/source/core/tool/interpr2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index 567b728ba8cc..e695d57345e7 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -1134,7 +1134,7 @@ void ScInterpreter::ScMIRR() { double fResult = -fNPV_reinvest / fNPV_invest; fResult *= pow( fRate1_reinvest, (double) nCount - 1 ); - fResult = pow( fResult, 1.0 / (nCount - 1) ); + fResult = pow( fResult, div( 1.0, (nCount - 1)) ); PushDouble( fResult - 1.0 ); } } |