Click or drag to resize

BasicFunctionsPMod Method

Modulus x%y, but with result guaranted to be greater or equal to zero.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int PMod(
	int x,
	int y
)

Parameters

x  Int32
Nominator.
y  Int32
Denominator.

Return Value

Int32
The remainder of the division x by y, but guaranted to be in the positive range.
See Also