mod: Calculate the modulus of two numbers

View source: R/mod.R

modR Documentation

Calculate the modulus of two numbers

Description

Calculates the modulus of two numbers using the equation z = x-y*floor(x/y)

Usage

mod(x, y)

Arguments

x
  • a number or vector

y
  • a number or vector

Value

the result x modulo y


wStockhausen/wtsUtilities documentation built on Feb. 3, 2025, 6:29 a.m.