System.Globalization.CCMath.amod C# (CSharp) Method

amod() public static method

The adjusted remainder functions for integers as defined in "Calendrical Calculations".
public static amod ( int x, int y ) : int
x int The integer argument to be divided.
y int The integer divisor argument.
return int
	public static int amod(int x, int y) {
		int i = mod(x, y);
		return (i == 0) ? y : i;
	}
}

Same methods

CCMath::amod ( double x, double y ) : double