paritytech/integer-sqrt-rs

Name: integer-sqrt-rs

Owner: Parity Technologies

Description: Integer square root algorithm implemented for rust integer primitives

Created: 2018-03-02 13:56:36.0

Updated: 2018-05-14 15:16:04.0

Pushed: 2018-05-14 15:16:03.0

Homepage: null

Size: 9

Language: Rust

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Integer square root

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

Example
rn crate integer_sqrt;

use` trait to get functionality
integer_sqrt::IntegerSquareRoot;

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.