From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd27dd0e0e0523c6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-21 05:40:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: pre-defined function convert hex to decimal? Date: Thu, 21 Nov 2002 08:39:39 -0500 Organization: MindSpring Enterprises Message-ID: References: NNTP-Posting-Host: d1.56.b7.73 X-Server-Date: 21 Nov 2002 13:40:01 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:31150 Date: 2002-11-21T13:40:01+00:00 List-Id: Robert A Duff wrote in message news:wccel9gdqsp.fsf@shell01.TheWorld.com... > "Beard, Frank Randolph CIV" writes: > > > Look at the Integer_IO routines, Put and Get, inside Ada.Text_IO. > > Pay particular attention to the "Base" parameter. Try calling Put > > (to a File) with the base parameter set to your desired base, and > > then read that value back in with Get (from a File). You can > > do something similar with the Put/Get to/from string routines. > > To/from a File?! Surely you mean String. > > Also, the 'Image and 'Value can also be used for hex-to-decimal > (but not the other way around). > It might be useful for a beginner to use a file at first to see what the results look like. From there, obviously, its better to use a string for any real work. MDC -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jast.mil/ Send Replies To: m c o n d i c @ a c m . o r g "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================