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=-0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ad4:4f33:0:b0:635:f3c8:860d with SMTP id fc19-20020ad44f33000000b00635f3c8860dmr37940qvb.11.1690832191720; Mon, 31 Jul 2023 12:36:31 -0700 (PDT) X-Received: by 2002:a05:6808:128a:b0:3a5:a79b:56b1 with SMTP id a10-20020a056808128a00b003a5a79b56b1mr20164095oiw.9.1690832191539; Mon, 31 Jul 2023 12:36:31 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 31 Jul 2023 12:36:31 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <4364b66d-97a6-46c4-b11d-382aee086216n@googlegroups.com> <5c870602-e55e-4fe5-9f71-d5cf78d163fcn@googlegroups.com> <2a5702b3-dbbc-4255-a4d4-e801f227fed3n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <460be87a-b32a-4ef8-b295-79d67d95dee4n@googlegroups.com> Subject: Re: When using the Ada Big_Numbers.Big_Integers package, can the To_String function output be sliced? From: Kenneth Wolcott Injection-Date: Mon, 31 Jul 2023 19:36:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65472 List-Id: On Saturday, July 29, 2023 at 9:43:42=E2=80=AFPM UTC-7, Randy Brukardt wrot= e: > 'Image doesn't support any formatting, so no "Aft" or "Exp". The slicing= =20 > isn't the problem. :-)=20 >=20 > You can use Text_IO to write to a string if you need formatting. 'Image i= s=20 > for quick & dirty debugging, not fancy output. (Of course, if you're luck= y=20 > and it does what you need, then feel free to use it.)=20 Hi Randy; Thank you for your input. I think I was (maybe I still am) suffering from the "sprintf" "disease" f= rom Perl (and C). Thanks, Ken