[haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support

  • From: fano il primo <fanoilprimo@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 11 Dec 2011 16:21:59 +0100

On Wed, Dec 7, 2011 at 9:31 AM, fano il primo <fanoilprimo@xxxxxxxxx> wrote:

> OK so you suggest to wait decimal floating point is ratified as a standard
> native type for C/C++?
> I suppose we've to wait a lot... you remember how much time tacked to
> adopt "long long" as
> a standard native integer?
>
> In your opinion can be convenient to develop our own maybe more compliant
> decimal class (as Be Inc. did for the string class, as C++ stdstring was
> not enough mature to be usable at that epoch?) or it's better to wait it
> becomes part of the C++ standard?
>
> Let me know what you think...
>
> Bye
> fano
>
> On Tue, Dec 6, 2011 at 10:03 PM, Ryan Leavengood <leavengood@xxxxxxxxx>wrote:
>
>> Using integers cents to represent monetary units is pretty standard,
>> and I can attest to working on professional banking software which did
>> just that. Once you start dealing with databases, multiple programming
>> languages and/or platforms, you really don't have any choice. Floats
>> are just too inconsistent, and these GCC extensions are not mature
>> enough.
>>
>> --
>> Regards,
>> Ryan
>>
>>
I've updated ticket https://dev.haiku-os.org/ticket/7174 with a link to
this discussion and a simple summary of
the *think thank* we've done here.
Let me know what you think...

Bye,
fano

Other related posts: