Decimal Floating Point types.

Iain Buclaw ibuclaw at ubuntu.com
Mon Oct 29 15:24:20 PDT 2012


On 29 October 2012 23:30, Dmitry Olshansky <dmitry.olsh at gmail.com> wrote:
> 10/29/2012 6:43 PM, Iain Buclaw пишет:
>
>> Speaking on behalf of Dejan, he expressed a wish to have such a type in
>> D. (eg: such that assert(3.6 * 10 == 36.0) - which may not always be
>> true on all architectures).
>>
>>
>> As maybe a new backend type is out of the question.  Perhaps we should
>> create a new library type for the job - eg: _Decimal32, _Decimal64,
>> _Decimal128.
>>
>> Thoughts?
>
>
> I recall there was proposal for Phobos with both fixed decimal floating
> point types and arbitrary precision variants.
>
> And taking the role of good jinn:
> https://github.com/andersonpd/decimal/tree/master/decimal
>
> (seems very much alive and kicking)
>
>>
>> Regards
>> Iain.
>
>
>
> --
> Dmitry Olshansky

Looks like just the ticket - however on a brief overview is still very
incomplete.


Regards,
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list