Fix decimal == 0 problem.

Not sure what the cause is, as nothing sets dec = 0, but it happened.