HyperMath

Rem

Rem

Previous topic Next topic No expanding text in this topic  

Rem

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The remainder function.

Syntax

R = Rem(X,Y)

Argument

Name

Description

 

X

A real scalar, vector, or matrix of dividend values.

 

Y

The divisor values. A real scalar, vector, or matrix that has the same dimensions as X.

Output

Name

Description

 

R

When X is a matrix, the result is X–Y.*Fix(X./Y).

Example

Find the remainder of 4.3 / 2.

 

Syntax

 

R = Rem(5.3, 2)

 

Result

 

R = 1.3

See Also:

Abs

Fix

Mod

Sign