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