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-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:1764:b0:635:49d7:544f with SMTP id et4-20020a056214176400b0063549d7544fmr15818qvb.4.1690628835591; Sat, 29 Jul 2023 04:07:15 -0700 (PDT) X-Received: by 2002:a9d:73c9:0:b0:6b8:92ea:23c4 with SMTP id m9-20020a9d73c9000000b006b892ea23c4mr5814752otk.4.1690628835437; Sat, 29 Jul 2023 04:07:15 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 29 Jul 2023 04:07:15 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=3.125.116.15; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 3.125.116.15 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4364b66d-97a6-46c4-b11d-382aee086216n@googlegroups.com> Subject: Re: When using the Ada Big_Numbers.Big_Integers package, can the To_String function output be sliced? From: AdaMagica Injection-Date: Sat, 29 Jul 2023 11:07:15 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1754 Xref: news.eternal-september.org comp.lang.ada:65464 List-Id: > Powers_of_2 :=3D Powers_of_2 * To_Big_Integer (2);=20 With the aspect Integer_Literal, also Powers_of_2 * 2 must work. The attrib= utes Integer_Literal, Real_Literal, Put_Image make the new big numbers near= ly work like numeric types (they are not). A difference: The range syntax f= or instance in loops A .. B is illegal.