Click or drag to resize

BasicFunctionsPMod Method

Computes the modulus x % y, but with a result guaranteed to be greater than or equal to zero.

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

Parameters

x  Int32
Numerator.
y  Int32
Denominator.

Return Value

Int32
The remainder of the division of x by y, guaranteed to be in the non-negative range.
See Also