Subversion Repositories JSX

Compare Revisions

Last modification

Ignore whitespace Rev 641 → Rev 640

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