Commit 9e47e969 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51184 954022d7-b5bf-4e40-9824-e11837661b57
parent 18c1aa9b
......@@ -120,9 +120,8 @@ Math.fact = function ( n ) {
if ( n < 0 ) return Number.NaN;
else if ( n > 170 ) return Number.Infinity;
while ( n != 0 ) {
res *= n--
res *= n--;
}
;
return res;
}
......@@ -135,7 +134,7 @@ Math.binomCoeff = function ( n, k ) {
}
Math.permut = function ( n, k ) {
return this.fact( n ) / this.fact( n - k );
return Math.floor( this.fact( n ) / this.fact( n - k ) + .5 );
}
var _func = [];//для велосипеда а-ля перегрузка функций.
_func[cElementType.number] = [];
......
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