From: Simon Wright <simon@pushface.org>
Subject: Re: Noob question.. Autopromotion?
Date: Mon, 05 May 2014 20:30:02 +0100
Date: 2014-05-05T20:30:02+01:00 [thread overview]
Message-ID: <lyvbtk6n2d.fsf@pushface.org> (raw)
In-Reply-To: lk8aui$llj$1@speranza.aioe.org
"Nasser M. Abbasi" <nma@12000.org> writes:
> On 5/5/2014 9:22 AM, sdalemorrey@gmail.com wrote:
>
>>
>> So the question is, if I use some sort of floating point type for
>> all 3 values,
>>
>
> Would not using Fixed point type be better for financial application?
>
> https://www2.adacore.com/gap-static/GNAT_Book/html/aarm/AA-3-5-9.html
>
> Ada is one of few languages that supports fixed point type
> as build-in data type.
>
> --Nasser
I'd have thought you'd use Annex F's decimal arithmetic[1], if your
compiler supports it.
It might be better to link to a more up-to-date version of the ARM! [2]
[1] https://www2.adacore.com/gap-static/GNAT_Book/html/aarm/AA-F-2.html
[2] http://www.ada-auth.org/standards/12rm/html/RM-TTL.html
next prev parent reply other threads:[~2014-05-05 19:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 14:22 Noob question.. Autopromotion? sdalemorrey
2014-05-05 14:54 ` Adam Beneschan
2014-05-05 15:32 ` Nasser M. Abbasi
2014-05-05 19:30 ` Simon Wright [this message]
2014-05-06 13:31 ` gautier_niouzes
2014-05-07 16:13 ` jpwoodruff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox