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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,607df69a3c572a07 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: No FAQ? A stupid question, then? Date: 1998/11/27 Message-ID: #1/1 X-Deja-AN: 416166489 Sender: matt@mheaney.ni.net References: <365E787B.896BFA0C@eucmax.sim.ucm.es> NNTP-Posting-Date: Fri, 27 Nov 1998 02:56:43 PDT Newsgroups: comp.lang.ada Date: 1998-11-27T00:00:00+00:00 List-Id: "Ricardo Palomares Mart�nez" writes: > My problem is simple: I need to get the string expression of integer > and real numbers (the usual Str(number) of other languages), but I'm > unable (that wouldn't be surprising if you did know me :-) ) to get the > equivalent function looking around the Ada reference (the HTML files > which came with GNAT 3.07 for MS-DOS). The attribute T'Image returns the string form of a number, ie S : String := Integer'Image (42); You can go the other way, and get the value that corresponds to a string: I : Integer := Integer'Value ("42");