Commit 1db308b4 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

fixed:

Bug 24650 - Некорректная ошибка выводится для функции ISPMT если аргумент nper равен нулю

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57502 954022d7-b5bf-4e40-9824-e11837661b57
parent d8e8cedd
......@@ -3006,7 +3006,7 @@ cISPMT.prototype.Calculate = function ( arg ) {
if ( nper instanceof cError ) return this.value = nper;
if ( pv instanceof cError ) return this.value = pv;
if ( nper.getValue() < 0 ) {
if ( nper.getValue() == 0 ) {
return this.value = new cError( cErrorType.division_by_zero );
}
......
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