mIRC Homepage
Posted By: HadS $calc - bug - 20/06/04 02:34 PM
Look:

$calc(9999999999999999) => 9999999999999998
$calc(3^40) => 12157665459056929000: False, 3^40 is equal to 1215766545905692801.

Instead of returning a false result, it would be more judicious to return nothing ($null) or an error message.
Posted By: Kelder Re: $calc - bug - 20/06/04 04:40 PM
0 is just as incorrect as 12157665459056929000. By the way, $calc(2^1050) already implements your feature. grin Computer calculations always have a certain limitation in range and precision, if you really need better than what mIRc gives, google for big numbers or arbitrary precision math or something.
Maybe you can even write a mIRC dll using http://spanky.triumf.ca/www/fractint/arb-prec.html or something?
Posted By: Bleepy Re: $calc - bug - 21/06/04 09:03 AM
It has already been reported and explained here a month or two back.

Try using the Search link at the top of the page before posting. smirk
Posted By: HadS Re: $calc - bug - 21/06/04 11:12 AM
Yes, here and here to, but I don't think that Khaled look the out-of-date messages before the release of a new version.

And my post isn't the same; read the last phrase of the post.
© mIRC Discussion Forums