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.6 required=5.0 tests=BAYES_00,FROM_WORDY,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,64a2795a04707a01,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.straub-nv.de!noris.net!not-for-mail From: "Alexander Camek" Newsgroups: comp.lang.ada Subject: Converting Integer / Float to String Date: Thu, 17 Jul 2008 09:49:16 +0200 Message-ID: NNTP-Posting-Host: pleione.3soft.de X-Trace: ork-un.noris.net 1216280923 14873 213.95.68.8 (17 Jul 2008 07:48:43 GMT) X-Complaints-To: news@noris.net NNTP-Posting-Date: Thu, 17 Jul 2008 07:48:43 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-NNTP-Posting-Host: www9.backup.noris.net Xref: g2news2.google.com comp.lang.ada:6914 Date: 2008-07-17T09:49:16+02:00 List-Id: Hi List, is there another way to convert a given String to an Integer or Float type? I am currently using some code like this: begin Value :=Float'Value(Float_String); exception when Constraint_Error => Value := 0.0; end; For me this is very ugly and a big hack. Thanks for any idea. Greetings Alexander