* How to output values in Hex on screen?
@ 2002-03-08 10:21 Sebastian
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian @ 2002-03-08 10:21 UTC (permalink / raw)
Hello,
Which package or how do you do to put values of Unsigned_16 on screen in hex
format?
/S
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to output values in Hex on screen?
@ 2002-03-08 10:33 Christoph Grein
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Grein @ 2002-03-08 10:33 UTC (permalink / raw)
Ada.Text_IO.Modular_IO.Put (File : in File_Type;
Item : in Num;
Width: in Field := Default_Width;
Base : in Number_Base := Default_Base);
> Which package or how do you do to put values of Unsigned_16 on screen in hex
> format?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to output values in Hex on screen?
[not found] <200203081033.LAA14218@bulgaria.otn.eurocopter.de>
@ 2002-03-08 11:39 ` David C. Hoos
0 siblings, 0 replies; 3+ messages in thread
From: David C. Hoos @ 2002-03-08 11:39 UTC (permalink / raw)
Since Ada.Text_IO.Modular_IO is a generic package, the code needs to
be something like this:
-- Instantiate a package for unsigned_16 IO.
package Unsigned_16._IO is Ada.Text_IO.Modular_IO (Interfaces.unsigned_16);
-- Output a value to the screen
Unsigned_16_IO.Put
(Item => <unsigned_16 expression>,
Width => 9, -- output looks like 16#CDEF#
Base => 16);
----- Original Message -----
From: "Christoph Grein" <christoph.grein@eurocopter.com>
To: <comp.lang.ada@ada.eu.org>
Sent: Friday, March 08, 2002 4:33 AM
Subject: Re: How to output values in Hex on screen?
> Ada.Text_IO.Modular_IO.Put (File : in File_Type;
> Item : in Num;
> Width: in Field := Default_Width;
> Base : in Number_Base := Default_Base);
>
> > Which package or how do you do to put values of Unsigned_16 on screen in
hex
> > format?
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-08 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-08 10:33 How to output values in Hex on screen? Christoph Grein
[not found] <200203081033.LAA14218@bulgaria.otn.eurocopter.de>
2002-03-08 11:39 ` David C. Hoos
-- strict thread matches above, loose matches on Subject: below --
2002-03-08 10:21 Sebastian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox