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-Thread: 103376,3c620ebecf1e16d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: ADA.CALENDAR and midnight References: <2nelqrF21jaU1@uni-berlin.de> Date: Fri, 06 Aug 2004 09:18:26 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:0XbZ10alKz82Q0sjBIxdpIItP8U= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1091747906 202.173.153.89 (6 Aug 2004 09:18:26 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!news.mel.connect.com.au!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:2590 Date: 2004-08-06T09:18:26+10:00 List-Id: >>>>> "Jean-Pierre" == Jean-Pierre Rosen writes: Jean-Pierre> 4.6 (32): If the target type is an integer type and Jean-Pierre> the operand type is real, the result is rounded to Jean-Pierre> the nearest integer (away from zero if exactly Jean-Pierre> halfway between two integers). Jean-Pierre> If you want truncation, either subtract 0.5 or use Jean-Pierre> the 'Floor attribute (or 'Truncation, depending on Jean-Pierre> the behaviour you want for negative values). Thanks for the assistance. It appears I am getting confused between differences in different languages... Going back to me to_string function, are there any packages (GPL compatible licence preferred) for displaying formatted output? For instance, my function would display "12:0:0", it would be preferred if I could display it as "12:00:00". I have a package called "Formatted_Output" by "Eugene Nonko, cm@liceum.secna.ru", but the license is unclear. I am not convinced the approach taken is ideal either. Ideally, I would prefer not to have to reinvent the wheel. -- Brian May