When reading the title, the first thing that struck me too was division by zero.
I doubt this is a common misunderstanding among any but the most junior of devs.
I doubt this is a common misunderstanding among any but the most junior of devs.
But that is not important. In a real application it might be a unicode error, a date error, a wrong-format error or something else.