Go to file
NikVolf 63c5c4def5 add little test 2017-08-14 18:15:38 +03:00
benches make heapsize optional 2017-07-04 11:12:49 +02:00
examples fix error str 2017-05-21 19:35:25 +03:00
src add little test 2017-08-14 18:15:38 +03:00
.gitignore removed hashes, updated toml 2016-12-22 13:23:46 +03:00
.travis.yml proper feature testing 2017-08-14 17:16:30 +03:00
Cargo.toml bump version 2017-08-14 17:20:46 +03:00
LICENSE-APACHE relicense under mit/apache2 2017-05-11 15:25:52 +02:00
LICENSE-MIT relicense under mit/apache2 2017-05-11 15:25:52 +02:00
README.md Update README.md 2017-08-14 17:31:00 +03:00
build.rs use byteorder for endian conversion, updated rustc_version version 2017-03-14 16:58:08 +01:00

README.md

bigint

Build Status

API Documentation

Fixed-sized integers arithmetic

extern crate bigint;
use bigint::U256;

fn main() {
	let mut val: U256 = 1023.into();
	for _ in 0..200 { val = val * 2.into() }
	assert_eq!(
		&format!("{}", val), 
		"1643897619276947051879427220465009342380213662639797070513307648"
	);
}

no_std crates

This crate has a feature, std, that is enabled by default. To use this crate in a no_std context, add the following to your Cargo.toml:

[dependencies]
bigint = { version = "4", default-features = false }