f96b2b2113
This allows comparison of alternative implementaitons, and to the f64::sqrt() implementation. Signed-off-by: Joe Richey <joerichey@google.com> |
||
---|---|---|
benches | ||
src | ||
.gitignore | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
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);