src/NeinMath/Integer.cs
/// <summary>
/// Divides an Integer by another Integer.
/// </summary>
/// <param name="right">The value to divide by.</param>
/// <returns>The integral result of the division.</returns>
Divides an Integer by another Integer.
Divides an Integer by another Integer .
public Integer Divide(Integer right)
        {
            if (right.length == 0)
                throw new DivideByZeroException();
            if (length < right.length)
                return new Integer(null, 0, false);
            var remainder = default(uint[]);
            var result = Calc.Divide(bits, length, right.bits, right.length,
                out remainder);
            return new Integer(result, result.Length, sign ^ right.sign);
        }
public Integer Divide ( Integer right ) { if ( right . length == 0 ) throw new DivideByZeroException ( ) ; if ( length < right . length ) return new Integer ( null , 0 , false ) ; var remainder = default ( uint [ ] ) ; var result = Calc . Divide ( bits , length , right . bits , right . length , out remainder ) ; return new Integer ( result , result . Length , sign ^ right . sign ) ; }
Divides an Integer by another Integer.
Divides an Integer by another Integer .
The integral result of the division.
The integral result of the division .
right
Integer
The value to divide by.
The value to divide by .