JuliaLang/julia — pull request #1408 by andrioni (2012-10-19 05:07:01+00:00)
Title: Check for negative values in factorial, binomial, pow

Using 3f1b1f65e4 as an example, now checks are made before converting to `Uint`, and `factorial(n::BigInt)` returns 0 for negative values, as the usual version already does.