Go to file
Nikolay Volf bf4188438d Update README.md 2017-04-11 15:44:32 +03:00
src Remove uint trait and add saturating ops 2017-03-22 19:07:45 +01:00
.gitignore removed hashes, updated toml 2016-12-22 13:23:46 +03:00
.travis.yml Create .travis.yml 2017-03-15 17:15:05 +04:00
Cargo.toml Merge remote-tracking branch 'origin/master' into bump 2017-03-22 21:39:59 +03:00
README.md Update README.md 2017-04-11 15:44:32 +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

Fixed-sized integers arithmetic

extern crate bigint;
use bigint::{U256, Uint};

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