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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-20 10:45:08 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: pre-defined function convert hex to decimal? User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 20 Nov 2002 18:44:38 GMT Content-Type: text/plain; charset=us-ascii References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:31136 Date: 2002-11-20T18:44:38+00:00 List-Id: "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). - Bob