mod

Mod is a quantity left over after performing the algorithm x-n*y, where n is the nearest integer of x/y division. The mod function returns the value with the sign same as the divisor, mod(x,0) returns x.Depending on input, function can return scalar, vector or matrix

Arguments

  1. Real value x
  2. Real value y

Output

Real value

Examples

mod