Go to file
Nikolay Volf 38f55ab77b Update example 2017-03-15 17:25:47 +04:00
src simplify using ByteOrder 2017-03-15 13:19:50 +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 Update Cargo.toml 2017-03-15 17:17:21 +04:00
README.md Update example 2017-03-15 17:25:37 +04:00
build.rs use byteorder for endian conversion, updated rustc_version version 2017-03-14 16:58:08 +01:00

README.md

bigint

travis 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"
		);
}