comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: pre-defined function convert hex to decimal?
Date: Wed, 20 Nov 2002 18:44:38 GMT
Date: 2002-11-20T18:44:38+00:00	[thread overview]
Message-ID: <wccel9gdqsp.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: mailman.1037815682.9555.comp.lang.ada@ada.eu.org

"Beard, Frank Randolph CIV" <frank.beard@navy.mil> 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



       reply	other threads:[~2002-11-20 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1037815682.9555.comp.lang.ada@ada.eu.org>
2002-11-20 18:44 ` Robert A Duff [this message]
2002-11-21 13:39   ` pre-defined function convert hex to decimal? Marin David Condic
2002-11-20 19:49 Gautier direct_replies_not_read
  -- strict thread matches above, loose matches on Subject: below --
2002-11-20 17:12 Sarah Thomas
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox