Skip to content

badcast/bigint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



Bigint


BigInt

Big Integer derived from GMP MP

BigInt derived from GMP MP. And it doesn't require additional dependencies. Bigint is a simplified version. Convenient syntax, OOP makes the code easy to read.

Usage

#include <iostream>
#include "bigint.hpp"

using namespace bigint; 

int main(){
	BigInt a, b, c;
	a = 1024;
	b = "1024"; 
	
	c = a + b;
	std::cout << "a + b = " << c << std::endl;
	
	...
	
	c = BigInt::pow(a, b);
	std::cout << "Expower a ^ b = " << c << std::endl;
	
	return 0;
}

About

Big Integer derived GMP MP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published