/integer-cbrt-rs

Integer cube root algorithm implemented for Rust integer primitives

Primary LanguageRustGNU General Public License v3.0GPL-3.0

Integer cube root

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

Based on integer-sqrt.

ci badge

Example

// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;

assert_eq!(8u8.integer_cbrt(), 2);