Rationals Lib?
Rainer Deyke
rainerd at eldwood.com
Sat Oct 10 14:38:26 PDT 2009
dsimcha wrote:
> I guess I could have implemented some of these suggestions, but the idea was for
> this lib to be very simple (it's only about 300 lines of code so far) and agnostic
> to the implementation of the integers it's working on top of, with the caveat
> that, if you use something that's not arbitrary precision, the onus is on you to
> make sure nothing overflows. If anyone, for example, made a wrapper to the GNU
> multiprecision lib that looked like a D struct w/ operator overloading, it would
> be able to plug right into this library. If std.bigint improves, this library
> will automatically benefit.
FWIW I use boost::rational quite a bit, and I've never felt the need to
use bigints.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list