Date: 2001-10-18 09:27:20
Just a quick note concerning the rational class- I see in the
documentation that it was decided not to provide a rational
approximation (from double) function as part of the library.
A good public domain implementation of such a function that I have
used previously is at
It allows one to provide a relative error bound on the approximation.
It is in K&R C, but is easily convertible to C++ (just change the
prototype and remove the fabs() declaration).
I think that it would be useful to add a link to this code in the
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk