Skip to main content

modulus

Function modulus 

Source
pub fn modulus(a: isize, b: isize) -> usize
Expand description

Calculate modulus of two numbers

ยงExample

use cryptography_breaker::algorithms::modulus;

let a = -2;
let b = 5;

assert_eq!(3, modulus(a, b))