Why aren't large numbers limited to 64 bit values?
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Dec 10 13:17:56 EST 2015
Because the binary equivalent of a 40 digit decimal number is NOT 40 bits. It is many more bits. For example the binary equivalent of 10000000000000000 (17 digits) is 101111101011110000100000000 (27 digits). You are thinking of each decimal digit as a binary bit.
Bob S
> On Dec 10, 2015, at 09:54 , Geoff Canyon <gcanyon at gmail.com> wrote:
>
> LiveCode works in 64 bit numbers, so why does
>
> put 10000000000 * 1000000000000000000000000000000
>
> result in
>
> 10000000000000000303786028427003666890752
>
> which is close to the right answer, instead of some 18 digit value?
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list