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

amod() public static method

An adjusted remainder function as defined in "Calendrical Calculations".
public static amod ( double x, double y ) : double
x double The double x argument.
y double The double y argument, the divisor.
return double
	public static double amod(double x, double y) {
		double d = mod(x, y);
		return (d == 0.0) ? y : d;
	}

Same methods

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