mod {clim.pact} | R Documentation

## Modulus of a division.

### Description

Returns the modulus of a division: returns the remainder of the expression x/y.

### Usage

    mod(x,y)

### Arguments

`x` | nominator (integer).
`y` | denominator (integer).

### Value

integer value from 0 .. (y-1)

### Author(s)

R.E. Benestad

### Examples

    mod(101,10)   # 1
    mod(4,12)     # 4
    mod(123,12)   # 3

[Package clim.pact version 2.2-1 Index]