From: Wiktor Moskwa <wiktorDOTmoskwa@gmail.com>
Subject: Re: Rounding with decimal types
Date: Mon, 26 Nov 2007 14:55:02 +0000 (UTC)
Date: 2007-11-26T14:55:02+00:00 [thread overview]
Message-ID: <fiemo6$oku$2@atlantis.news.tpi.pl> (raw)
In-Reply-To: 1k7nof3469gt2.144br30askbb5.dlg@40tude.net
On 26.11.2007, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
> On Mon, 26 Nov 2007 08:15:02 +0000 (UTC), Wiktor Moskwa wrote:
>
>> I'd like to know if there is "round up" and "unbiased rounding"
>> implemented for decimal types in Ada and if not, how "is it usually done"?
>
> Yep, this is a problem, I faced it too but for floating-point numbers when
> implemented interval computations. There one needs rounding up and down as
> well.
>
> I would suggest something as clumsy as:
> [..]
I've almost forgotten about operator overloading in Ada (too much
Java coding...) - thanks for reminding :)
--
Wiktor Moskwa
next prev parent reply other threads:[~2007-11-26 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-25 15:36 Rounding with decimal types Wiktor Moskwa
[not found] ` <13kjevsjmhujaa3@corp.supernews.com>
2007-11-26 8:15 ` Wiktor Moskwa
2007-11-26 13:47 ` Dmitry A. Kazakov
2007-11-26 14:55 ` Wiktor Moskwa [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-26 12:27 Grein, Christoph (Fa. ESG)
2007-11-26 14:46 ` Wiktor Moskwa
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox