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,353ec4aa58e82326 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: String to Integer conversion? Date: 1998/07/31 Message-ID: #1/1 X-Deja-AN: 376579173 Sender: matt@mheaney.ni.net References: NNTP-Posting-Date: Thu, 30 Jul 1998 22:24:31 PDT Newsgroups: comp.lang.ada Date: 1998-07-31T00:00:00+00:00 List-Id: haug@localhost.ruhr.de (Haug Buerger) writes: > i can't believe it, but i found no function in the Standard > libs to convert a string, "123", to Integer(123). I found some > GNAT internal functions that do it, but isn't there a standard > way to do it? Use the attribute Integer'Value. declare I : constant Integer := Integer'Value ("123"); begin QED