remainder

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

Arguments

  1. Real value x
  2. Real value y

Output

Real value

Examples

remainder