Categories October Surprise 2024 factorial – Why does 0! = 1? – Mathematics Stack Exchange Post author By Post date September 15, 2025 The product of 0 and anything is $0$, and seems like it would be reasonable to assume that $0! = 0$. I’m perplexed as to why I have to account for this condition in my factorial function (Trying to learn Haskell).