Boost logo

Boost :

From: Matthew Austern (austern_at_[hidden])
Date: 2001-11-07 15:27:52


Peter Dimov wrote:
 
> I don't really see what's wrong with the simple
>
> namespace math
> {
> double const pi = 3.14159265358...;
> }

Change it to "long double", and I'd go along with it. But
I'd hate to see someone write
  long double alpha = e*e / 4.ld / math::pi;

and silently lose half of their precision because they're
trying to compute a long double result with a double
constant.
                        --Matt


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk