Why aren't large numbers limited to 64 bit values?
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Dec 10 13:25:43 EST 2015
Correction. The web calculator had a maximum which I exceeded. The binary equivalent of 1E40 is 1110101100011001010011111000111000011010111001010010100000000000000000000000000000000000000000000000000000000000000000000000000000000. That is 133 bits. That far exceeds the limits of Livecode.
Bob S
> On Dec 10, 2015, at 10:17 , Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
>
> 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