$include_dir="/home/hyper-archives/ublas/include"; include("$include_dir/msg-header.inc") ?>
From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-08-24 08:01:00
Sure. I am interested to know in which applications rational arithmetic 
is used. It is discussed many decades ago, but never broke through, as 
far as I can see.
Thanks,
Karl
Jeffrey Brent McBeth wrote:
>On Fri, Aug 24, 2007 at 01:22:54PM +0200, Karl Meerbergen wrote:
>  
>
>>Hi,
>>
>>What is the advantage of boost::rational numbers compared to floating 
>>numbers?
>>    
>>
>
>Err, if you are only working with rational numbers, then you can get exact
>answers, where with floating point, you only get exact answers for
>non-repeating short mantissa decimal representations.  For example .03 can
>be represented as 3/100 rather than .02999.. (doesn't go on forever, but I
>don't remember the cut off for fp right now)
>
>Jeff
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ublas mailing list
>ublas_at_[hidden]
>http://listarchives.boost.org/mailman/listinfo.cgi/ublas
>  
>