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

div() public static method

The static method divides two integers.
Please notify that the function is not compatible to the standard integer divide operation /.
public static div ( int x, int y ) : int
x int The integer x value.
y int The integer y value.
return int
	public static int div(int x, int y) {
		return (int)System.Math.Floor((double)x/(double)y);
	}

Usage Example

Example #1
0
        public static int div_mod(out int remainder, int x, int y)
        {
            int num = CCMath.div(x, y);

            remainder = x - y * num;
            return(num);
        }
All Usage Examples Of System.Globalization.CCMath::div