Long Math is a longstanding ACL contest theme, and I think we've talked about it here, before, too, because every language runs into precision issues - sooner or later you're going to run out of digits in the register.
So in LC Put the value into a container Write the math algorithms that does it the way you know how to do it when you are doing it manually. It's very straightforward. On Tue, Apr 25, 2017 at 1:27 PM, dunbarx via use-livecode < use-livecode@lists.runrev.com> wrote: > Devin. > > i don't get an overflow error til 309 digits. Where did the guy set a > limit? > > Making some sort of composite gadget, like we played around with a while > ago > on the forum to allow long multiplications, additions, etc. without limit > would be a general solution without, er, limit. > > Maybe Hermann can step in? > > But post your offering. As you say, it will firm LC within stack overflow. > > Craig > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Primes-and-primality-checking-tp4714219p4714234.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode