comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@attbi.com>
Subject: Re: Newbie Question: Floating Point Decimal Rounding
Date: Thu, 30 Jan 2003 03:42:20 GMT
Date: 2003-01-30T03:42:20+00:00	[thread overview]
Message-ID: <wa1_9.91984$AV4.3441@sccrnsc01> (raw)
In-Reply-To: b194ob$uv$1@saturn.bton.ac.uk

You could use:

  float'Rounding( value * 100.0 ) / 100.0;

Steve
(The Duck)

"Sam T" <samst@btinternet.com> wrote in message
news:b194ob$uv$1@saturn.bton.ac.uk...
> Hey,
> I need to round a float to 2 decimal points
> Any ideas?
>
>





      parent reply	other threads:[~2003-01-30  3:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 17:58 Newbie Question: Floating Point Decimal Rounding Sam T
2003-01-29 20:09 ` James S. Rogers
2003-01-30  3:42 ` Steve [this message]
replies disabled

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