rem {matlab2r}R Documentation

Remainder after divisionĀ½

Description

Rreturns the remainder after division of a by b, where a is the dividend and b is the divisor. This function is often called the remainder operation. The rem function follows the convention that rem(a,0) is NaN.

Usage

rem(a, b)

Arguments

a

the dividend

b

the divisor

Value

The remainder

Author(s)

Waldir Leoncio

Examples

rem(23, 5)
rem(1:5, 3)
rem(c(-4, -1, 7, 9), 3)  #FIXME
rem(c(0, 3.5, 5.9, 6.2, 9, 4 * pi), 2 * pi)

[Package matlab2r version 1.5.0 Index]