in reply to Dividing and result of zero.

Perhaps you are doing this in the scope of use bigint; or use integer;? If so, don't do that then.