Boost logo

Boost :

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

[boost] Arbitrary Magnitude Integer Library in sandbox and filesection

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  ( ).  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.



Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at