mIRC makes no warranty for the calculation of numbers greater than 15 digits in length.
This is a conservative figure, as some functions work just fine for values 16 digits and longer. However, most of mIRC's math uses a 64 bit floating point, which leaves only 48 bits for intergers.
Just avoid figures greater than 281474976710655. ( 2^48 - 1 )
___
PS. Again, 2^48 is a conservative safety limit.
$calc appears to get 2^49 through 2^56 correct, yet it can't even add:
9999999999999998 + 1 (which only uses 54 bits of memory, and is 16 digits long)
While 2^56 == 72057594037927936 (which needs 57 bits of memory, and is 17 digits)
beats me.
Last edited by Raccoon; 28/04/04 04:18 PM.