<< real | Elementary functions | repmat >> |
C = rem(A, B) |
a variable: dividend
a variable: divisor
result of rem(A, B)
C = rem(A, B) computes the remainder of A and B, i.e : A - fix(A ./ B) .* B.
This function manages also negative values.
mod(A, 0) = A , whereas rem(A, 0) = NaN.
mod(A, B) has the sign of B, while rem(A, B) has the sign of A.
mod and rem are equals if A and B have the same sign.
rem (-1, 3)
mod(-1, 3)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET