What output do you get then? Because it does return 0 for me.
Apart from that, it greatly surprises me that mIRC returns 0 for division by 0. crazy