Trait statrs::euclid::Modulus [−][src]
Provides a trait for the canonical modulus operation since % is technically the remainder operation
Required methods
fn modulus(self, divisor: Self) -> Self
[src]
Performs a canonical modulus operation between self
and divisor
.
Examples
use statrs::euclid::Modulus; let x = 4i64.modulus(5); assert_eq!(x, 4); let y = -4i64.modulus(5); assert_eq!(x, 4);