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!aioe.org!8nKyDL3nVTTIdBB8axZhRA.user.46.165.242.75.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Numerics.Big_Numbers.Big_Integer has a limit of 300 digits? Date: Wed, 22 Dec 2021 20:34:20 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <0bf093e6-c25b-4541-a5c0-5b840a2e4e06n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="38839"; posting-host="8nKyDL3nVTTIdBB8axZhRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:62RNamBPM9X9iBMn7NzmQ+KYcO0= Xref: reader02.eternal-september.org comp.lang.ada:63248 List-Id: AdaMagica writes: > There is a limit > Bignum_Limit : constant := 200; > in System.Generic_Bignums body, function Normalize, lines 1100ff. This is the maximum length of a Digit_Vector, where subtype SD is Interfaces.Unsigned_32; -- Single length digit type Digit_Vector is array (Length range <>) of SD; -- Represent digits of a number (most significant digit first) I think this should give a maximum value of ~10**2000. I printed out sum'image'length; the last value before the exception was 1937.