Go to file
Richard Dodd (dodj) c86936f7d5
Merge pull request #7 from paritytech/ser-128
Add u128 and i128.
2018-10-30 11:47:43 +00:00
src Add u128 and i128. 2018-10-30 12:22:24 +01:00
.gitignore First commit 2017-10-23 13:29:42 +01:00
Cargo.toml Add no_std and fix tests 2018-03-02 21:37:51 +00:00
LICENSE-APACHE First commit 2017-10-23 13:29:42 +01:00
LICENSE-MIT First commit 2017-10-23 13:29:42 +01:00
README.md First commit 2017-10-23 13:29:42 +01:00

README.md

Integer square root

This module contains the single trait IntegerSquareRoot and implements it for primitive integer types.

Example

extern crate integer_sqrt;

// `use` trait to get functionality
use integer_sqrt::IntegerSquareRoot;

assert_eq!(4u8.integer_sqrt(), 2);