Download Help (Windows Only) |
Owning Class: basic
Requires: MathScript RT Module
c = rem(a, b)
Computes the remainder of the input elements.
Name | Description |
---|---|
a | Specifies the dividend. a is a real scalar, vector, or matrix. |
b | Specifies the divisor. b is a real scalar, vector, or matrix. |
Name | Description |
---|---|
c | Returns the remainder of a divided by b. c has the same sign as a. c is a matrix of the same size as a or b. |
LabVIEW computes the remainder using the following equation: rem(a, b) = a-fix(a./b).*b. If the input elements have the same sign, rem(a, b) is equivalent to mod(a, b).
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Yes |
A = [1:1:5]
B = 3
C = rem(A, B)