src/NeinMath/Integer.cs
/// <summary>
/// Adds the values of an Integer and a signed 32-bit integer.
/// </summary>
/// <param name="right">The value to add.</param>
/// <returns>The sum of the Integer and right.</returns>
Adds the values of an Integer and a signed 32-bit integer.
Adds the values of an Integer and a signed 32 - bit integer .
public Integer Add(int right)
        {
            if (length == 0)
                return ((Integer)right).Plus();
            if (sign != (right < 0))
                return Negate().Subtract(right).Negate();
            var result = Calc.Add(bits, length, Bits.Abs(right));
            return new Integer(result, result.Length, sign);
        }
public Integer Add ( int right ) { if ( length == 0 ) return ( ( Integer ) right ) . Plus ( ) ; if ( sign != ( right < 0 ) ) return Negate ( ) . Subtract ( right ) . Negate ( ) ; var result = Calc . Add ( bits , length , Bits . Abs ( right ) ) ; return new Integer ( result , result . Length , sign ) ; }
Adds the values of an Integer and a signed 32-bit integer.
Adds the values of an Integer and a signed 32 - bit integer .
The sum of the Integer and right.
The sum of the Integer and right .
right
int
The value to add.
The value to add .