comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: pre-defined function convert hex to decimal?
Date: Thu, 21 Nov 2002 08:39:39 -0500
Date: 2002-11-21T13:40:01+00:00	[thread overview]
Message-ID: <arinnh$l5d$1@slb3.atl.mindspring.net> (raw)
In-Reply-To: wccel9gdqsp.fsf@shell01.TheWorld.com

Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message
news:wccel9gdqsp.fsf@shell01.TheWorld.com...
> "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).
>

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]
======================================================================





  reply	other threads:[~2002-11-21 13:39 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 ` pre-defined function convert hex to decimal? Robert A Duff
2002-11-21 13:39   ` Marin David Condic [this message]
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