comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: ADA.CALENDAR and midnight
Date: Fri, 06 Aug 2004 09:18:26 +1000
Date: 2004-08-06T09:18:26+10:00	[thread overview]
Message-ID: <sa4smb1cgxp.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: ae8tec.1ud.ln@skymaster

>>>>> "Jean-Pierre" == Jean-Pierre Rosen <rosen@adalog.fr> 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 <bam@snoopy.apana.org.au>



  reply	other threads:[~2004-08-05 23:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 10:00 ADA.CALENDAR and midnight Brian May
2004-08-05 11:06 ` Frank Piron
2004-08-05 11:19 ` Nick Roberts
2004-08-05 11:46   ` Brian May
2004-08-05 12:01     ` Jano
2004-08-05 12:15       ` Jean-Pierre Rosen
2004-08-05 23:18         ` Brian May [this message]
2004-08-06  5:59           ` Martin Dowie
2004-08-06  7:34           ` Gautier
2004-08-05 13:01 ` Ada.Calendar " Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox