Originally Posted By: Noot
hi all, i see that $calc identifier have a bug.
When you write $calc(1/0), it returns 0 that is wrong.
1/0 is impossible.


As far as I know, mIRC doesn't use it's own built calculator, but the system's calculator. So this could be MicroSoft's fault, not Khaled's.

I guess you wanted it to return something like, something in English. Like "not possible." Or not simply return anything at all.

Quote:
How do you resolve this problem?

Thx


You can't change the default $calc() identifier. So you'll have to make your own custom $calculate() identifier or so.

Best of luck with that.

-Neal.