From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Ada.Numerics.Big_Numbers.Big_Integer has a limit of 300 digits? Date: Wed, 22 Dec 2021 12:39:42 -0800 Organization: A noiseless patient Spider Message-ID: <87ee64wf01.fsf@nightsong.com> References: <304dcae2-8b20-43ff-8769-32fa06d4dc10n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="dc08b31fa408c994b3052dbcf9f5a79a"; logging-data="6539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KX2LAlrTbeYv6aDWI2x62" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:xDIOyPQ/I6icXhQ8rVJbsnuOkHc= sha1:3uwkAZ2KU54Dwfvu9gN0AOkoDfU= Xref: reader02.eternal-september.org comp.lang.ada:63249 List-Id: Michael Ferguson writes: > However, my code strictly breaks when the loop range is set to 683, > which 683^683 = 8.12E1935. > > So, that is interesting that the Big_Integer type works numbers of > just under 2000 digit length despite Bignum_Limit : constant := 200. I wonder if the limit is 6400 bits (200 * 32 bit words) or something related to that. 2**6400 is roughly 3.9e1926 if my math is right.