This is the revision history for factorial in <freenode.net:#perlbot>

factoid_idsubjectcopulapredicateauthornamespace
3411 factorial is N! = N*(N-1)*...*1; 0! = 1; In perl: sub fac { return 1 if $_[0] == 1; $_[0] * fac($_[0] - 1) }; For big numbers you have to use Math::BigInt to obtain accurate values. perlbot <*:##NULL>