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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e38b3d31f83372db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-23 15:37:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!e420r-sjo4.usenetserver.com!news-out.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: <3B0BD493.5ABBA12B@labe.felk.cvut.cz> Subject: Re: Natural to String without space? (newbie question) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Wed, 23 May 2001 22:37:02 GMT NNTP-Posting-Host: 24.248.45.203 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 990657422 24.248.45.203 (Wed, 23 May 2001 15:37:02 PDT) NNTP-Posting-Date: Wed, 23 May 2001 15:37:02 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:7714 Date: 2001-05-23T22:37:02+00:00 List-Id: I don't know if it's the easiest way, but there is a function in Ada.Strings.Fixed called "Trim" that may be used to eliminate leading and trailing spaces. For example: Put( Trim( Natural'IMAGE( value ), both ) ); FYI: I recommend browsing through Appendix A of the Ada 95 reference manual. This appendix has descriptions of the standard library included with Ada 95. I hope this helps, SteveD "Tomas Hlavaty" wrote in message news:3B0BD493.5ABBA12B@labe.felk.cvut.cz... > Natural'Image returns string with space at the begining. Is there any > standard way how to get number without this additional character? > > Thanks, > > Tomas