ec_mod

March 26, 2020 Contributors

Name

ec_mod — calculate the modulus of two numbers

Synopsis

ec_mod { number1 } { number2 }

Description

ec_mod calculates the modulus of two numbers and returns the result.

$a = 87;
$b = 43;
$mod = ec_mod $a $b;
ec_log "${a} mod by ${b} is ${mod}";
#mod is 1