Boost logo

Boost :

From: Andras Erdei (aerdei_at_[hidden])
Date: 2004-12-15 05:56:31


On Tue, 14 Dec 2004 12:30:55 -0700, Jonathan Turkanis
<technews_at_[hidden]> wrote:

> I agree with many of your points, except the main one: that Boost.Rational with
> built-in intergal types is useless without rounding.

if you are really, really convinced that this is the case, there is a code
snippet at http://www.ccg.hu/pub/src/rat.cpp -- it shows that the current
finite precision boost::rational semantics can be implemented a lot more
efficiently
 
> - round to the nearest representable value
> I think you are arguing that ... is easy to compute, and
> should be the default. Right?

yes

 
br,
andras


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