Go to file
Nikolay Volf 3ebff39cbe Merge pull request #2 from debris/depsup
use byteorder for endian conversion, updated rustc_version version
2017-03-15 16:12:04 +03: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
Cargo.toml use byteorder for endian conversion, updated rustc_version version 2017-03-14 16:58:08 +01:00
README.md Create README.md 2016-12-22 15:07:45 +04:00
build.rs use byteorder for endian conversion, updated rustc_version version 2017-03-14 16:58:08 +01:00

README.md

bigint

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