Krumelure:

the $calc(0 / 0) issue has been reported before. A discussion ensued. The conclusion was that mIRC is not Mathematica, MATLAB or Maple. mIRC doesn't care about "mathematical correctness" or axioms of whatever real space you seem to. You see, in case you missed it, mIRC is an IRC client. The scripting language is used for IRC. As such, mIRC cares about the most natural representation of the math operations in the context of the IRC medium. In the case of -0, 0 is the better representation. However, in the case of 0 / 0, most scripters and users would expect the output to be "0", not "infinity", or "NaN" like so many broken Javascript pages display. Given the context of most $calc operations (%nicks / %total_nicks, %sent_bytes / %total_bytes, etc.). This would be counterintuitive, not intuitive, and intuition is more important than mIRC getting 100% on a math test.



- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"