Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

rem (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info
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)

Related Topics



Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit