|
Boost : |
Subject: Re: [boost] Arbitrary precision arithmetic
From: DE (satan66613_at_[hidden])
Date: 2009-08-19 13:09:51
on 19.08.2009 at 17:07
Jarrad Waterloo wrote :
> If you want to know what should go into its public interface consider
> looking at
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2849.pdf. This
> is the current proposal for decimal floating point types. Being another
> numeric type for C++ this proposal should give you an idea of what
> functions are needed; at least as a goal.
indeed
my suggestion would be:
if a floating point type (with higher precision) is provided it sould be
conformant with iec559 (ieee754)
http://en.wikipedia.org/wiki/IEC_559
http://en.wikipedia.org/wiki/IEEE_754-2008
then i suppose it'll look like
float64 f1;
float128 f2;
float256 f3; //etc.
-- Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk