Boost logo

Boost Users :

From: Frank Hess (frank.hess_at_[hidden])
Date: 2005-09-02 13:51:37


Hi,

I'm curious if it is possible to make boost.interval more convenient to use
for tracking floating point rounding errors. Currently, you run into
problems if you do naive things like

boost::numeric::interval<double> x(0.1);

since the 0.1 value gets rounded once by the compiler before the interval
constructor ever sees it. Also, things like

boost::numeric::interval<double> y(2), z;
z = 0.1 * y;

have similar problems.

-- 
Frank



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net