Go to file
Nikolay Volf b0f3508ff3 Merge pull request #3 from ethcore/bump
Bump vesion
2017-03-15 16:19:29 +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
.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 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");
}