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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bb44fc57f6db2f2 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Number into String Date: 2000/01/06 Message-ID: <85208t$15j$1@ash.prod.itd.earthlink.net>#1/1 X-Deja-AN: 569058355 Content-Transfer-Encoding: 7bit References: <8517up$t0m$1@green.kreonet.re.kr> X-Posted-Path-Was: not-for-mail Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: 6 Jan 2000 12:02:37 GMT X-ELN-Insert-Date: Thu Jan 6 04:05:06 2000 Organization: Ada95 Press, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-06T00:00:00+00:00 List-Id: Jeong, Lae Hyung wrote in message news:8517up$t0m$1@green.kreonet.re.kr... > NUM : Integer := 123; > > . . . > > How can I convert Integer_value NUM into String_value. > > > Woud you help me with a simple code?. > Every scalar type has an attrinute, 'Image, that returns the image of its argument's value, as a string. See the Ada Reference Manual Section 3.5 for more details. For your example, Integer'Image (Num) returns " 123". -- David C. Hoos -- W1DCH ------------------------------------- The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change. -- FORTRAN manual for Xerox Computers