comp.lang.ada
 help / color / mirror / Atom feed
From: "M. A. Alves" <maa@liacc.up.pt>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: Characters and Numerics
Date: Wed, 5 Dec 2001 12:16:32 +0000 (GMT)
Date: 2001-12-05T12:16:32+00:00	[thread overview]
Message-ID: <mailman.1007554622.31106.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <e499e546.0112050403.680c6db9@posting.google.com>

On 5 Dec 2001, Duke Luke wrote:
> How can I change type character to type natural??
> e.g: '3' -> 3;

Use attribute Value of the type Natural upon a String version of
the Character e.g.

  N := Natural'Value(C & "");

-- 
   ,
 M A R I O   data miner, LIACC, room 221   tel 351+226078830, ext 121
 A M A D O   Rua Campo Alegre, 823         fax 351+226003654
 A L V E S   P-4150-180 PORTO, Portugal    mob 351+939354002





  parent reply	other threads:[~2001-12-05 12:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05 12:03 Characters and Numerics Duke Luke
2001-12-05 12:07 ` Lutz Donnerhacke
2001-12-05 12:16 ` M. A. Alves [this message]
2001-12-05 14:58   ` Matthew Heaney
2001-12-05 18:55     ` Wes Groleau
2001-12-05 19:24       ` Matthew Heaney
2001-12-05 21:27         ` Wes Groleau
2001-12-06  0:19     ` tmoran
replies disabled

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