Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richard-uk1/integer-sqrt-rs
Integer square root algorithm implemented for rust integer primitives
https://github.com/richard-uk1/integer-sqrt-rs
algorithm rust
Last synced: 6 days ago
JSON representation
Integer square root algorithm implemented for rust integer primitives
- Host: GitHub
- URL: https://github.com/richard-uk1/integer-sqrt-rs
- Owner: richard-uk1
- License: apache-2.0
- Created: 2017-10-23T11:59:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T10:05:09.000Z (about 4 years ago)
- Last Synced: 2024-10-25T21:47:06.883Z (20 days ago)
- Topics: algorithm, rust
- Language: Rust
- Size: 22.5 KB
- Stars: 14
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Integer square root
This module contains the single trait `IntegerSquareRoot` and implements it
for primitive integer types.![ci badge](https://github.com/derekdreery/integer-sqrt-rs/workflows/Continuous%20integration/badge.svg)
## Example
```rust
// `use` trait to get functionality
use integer_sqrt::IntegerSquareRoot;assert_eq!(4u8.integer_sqrt(), 2);
```