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,8f2146b9c1ab93cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-13 14:36:39 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: ToString? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C8FD041.6450760B@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3c8e02cb$1@pull.gecm.com> <3C8E3171.61E8029C@boeing.com> <3c8f0fbe$1@pull.gecm.com> Mime-Version: 1.0 Date: Wed, 13 Mar 2002 22:18:41 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:21170 Date: 2002-03-13T22:18:41+00:00 List-Id: Martin Dowie wrote: > > > > The string will have a ' ' character at the front if positive. > > > > More accurately, the string will have a leading space if the value is > > not negative. > > Ah, the '0' isn't a positive number thang! It's easy enough to test: with Ada.Text_IO; use Ada.Text_IO procedure Is_Zero_Positive is Zero : constant := 0; begin -- Is_Zero_Positive if Zero in Positive then Put_Line ("Zero is Positive"); else Put_Line ("Zero is not Positive"); end if; end Is_Zero_Positive; This puts "Zero is not Positive" to the standard output. QED. -- Jeffrey Carter