Boost logo

Boost :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2002-09-05 11:26:46


Hello all,

This is just to inform you that I have added an arbitrary magnitude
integer library, named bigint, to the boost sandbox ( docs in
boost/libs/bigint/index.html ) and to the boost file section (
http://groups.yahoo.com/group/boost/files/bigint.zip ). My primary
focus was developing the interface, so the implementation is not
optimized for performance at this time. Quick example from the docs:

#include "boost/bigint.hpp"
#include <cassert>
#include <iostream>

*int* main() {

  /// 40 factorial = 40!/

  boost::bigint value(1);
  *for*(*int* i = 1; i <= 40; ++i)
    value *= i;

  std::cout << "40! = " << value << "\n";

}

The resulting output is:

40! = 815915283247897734345611269596115894272000000000

All comments are welcome.

Cheers,

Ron


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