This is the revision history for factorial in <discord.gg:#412831877242683403>
factoid_id | subject | copula | predicate | author | namespace |
---|---|---|---|---|---|
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> |