Subversion Repositories JSX

Compare Revisions

Last modification

Ignore whitespace Rev 640 → Rev 641

/trunk/math/integer.js
194,7 → 194,7
* @throws Math#OverflowError
*/
Math.fac = function(n) {
if (n % 1)
if (n % 1 != 0)
{
n = Math.floor(n);
}
268,7 → 268,7
result = Math.exp(nExponent * Math.log(Math.abs(nBase)));
if (nBase < 0)
{
if (!(nExponent % 1))
if (nExponent % 1 == 0)
{
if (Math.floor(nExponent) % 2)
{
389,4 → 389,4
}
 
return prime;
};
};