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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:1294:: with SMTP id w20mr25724984qki.197.1637280402830; Thu, 18 Nov 2021 16:06:42 -0800 (PST) X-Received: by 2002:a25:3787:: with SMTP id e129mr30574382yba.91.1637280402535; Thu, 18 Nov 2021 16:06:42 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Nov 2021 16:06:42 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=47.34.247.166; posting-account=o_Y23woAAACPYGlDsFV1OivhygPNSoRn NNTP-Posting-Host: 47.34.247.166 References: <49db08e4-4380-4877-9e50-a986856c9821n@googlegroups.com> <09d82d22-aca1-4ff9-9e2a-33a180544f88n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <45dac231-22fa-409e-97a4-238d16fe832dn@googlegroups.com> Subject: Re: Integer_IO or Modular_IO with different base as default From: Ken Roberts Injection-Date: Fri, 19 Nov 2021 00:06:42 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63130 List-Id: Sorry for the delay in getting back - $DAYJOB and $ILLNESS combined. On Mon, Nov 15, 2021 at 3:10 PM Jeffrey R.Carter wrote: On 2021-11-15 23:09, Ken Roberts wrote: > I was going to add before your reply that I'm trying to get output without the extra padding of showing the base. Ada.Text_IO.Integer_IO and Ada.Text_IO.Modular_IO both declare Default_Base : Number_Base := 10; This is a variable, so you can change it. However, that outputs in based-literal format. You can use PragmARC.Images (https://github.com/jrcarter/PragmARC) to obtain images in any base without the base information. Image width and zero filling are also provided. -- Jeff Carter Hmmm. After testing by setting the base manually after instantiation, still adds the based-literal information as noted. So, it's either copy Modular_IO into my project (with renaming) and change the default base, or add another package to monitor for updates. Fun either way. Thanks for the help both Jeff and Ben. (Sincerely, not ironically).