src/NeinMath/Integer.cs
/// <summary>
/// Returns the bitwise one's complement of an Integer.
/// </summary>
/// <returns>The bitwise one's complement.</returns>
Returns the bitwise one's complement of an Integer.
Returns the bitwise one ' s complement of an Integer .
public Integer OnesComplement()
        {
            var selfBits = sign
                ? Bits.TwosComplement(bits, length) : bits;
            var result = Bits.OnesComplement(selfBits, length);
            var signed = !sign;
            if (signed)
                result = Bits.TwosComplement(result, result.Length);
            return new Integer(result, result.Length, signed);
        }
public Integer OnesComplement ( ) { var selfBits = sign ? Bits . TwosComplement ( bits , length ) : bits ; var result = Bits . OnesComplement ( selfBits , length ) ; var signed = ! sign ; if ( signed ) result = Bits . TwosComplement ( result , result . Length ) ; return new Integer ( result , result . Length , signed ) ; }
Returns the bitwise one's complement of an Integer.
Returns the bitwise one ' s complement of an Integer .
The bitwise one's complement.
The bitwise one ' s complement .