comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Rounded off
Date: 1999/06/09
Date: 1999-06-09T00:00:00+00:00	[thread overview]
Message-ID: <7jmq0c$uq$1@nnrp1.deja.com> (raw)
In-Reply-To: jKz73.34$ep6.34762@ratbert.tds.net

In article <jKz73.34$ep6.34762@ratbert.tds.net>,
  dginc@tds.net wrote:
> i am wondering how to have my output come out rounded insted of with
> decimals??  the output is 19.8 figured from calculation, i want it to
output
> that rounded off (20).  the calculation is from float a decimal and
input is a
> whole number.  any suggestions
>


How about:
 Integer(X + 0.5)


--
T.E.D.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  reply	other threads:[~1999-06-09  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-09  0:00 Rounded off dginc
1999-06-09  0:00 ` dennison [this message]
1999-06-09  0:00   ` David C. Hoos, Sr.
1999-06-10  0:00     ` Robert Dewar
1999-06-10  0:00   ` Robert Dewar
1999-06-14  0:00     ` William Dale
1999-06-15  0:00     ` czgrr
replies disabled

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