C# BigInteger Inequality(BigInteger, BigInteger)
Description
BigInteger Inequality(BigInteger, BigInteger)
Returns
a value that indicates whether two BigInteger objects have different values.
Syntax
BigInteger.Inequality(BigInteger, BigInteger)
has the following syntax.
public static bool operator !=(
BigInteger left,
BigInteger right
)
Parameters
BigInteger.Inequality(BigInteger, BigInteger)
has the following parameters.
left
- The first value to compare.right
- The second value to compare.
Returns
BigInteger.Inequality(BigInteger, BigInteger)
method returns true if left and right are not equal; otherwise, false.
Example
/* ww w . ja v a 2 s .c om*/
using System;
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number1 = 912345834723;
BigInteger number2 = 312345145625;
BigInteger number3 = 912325834723;
Console.WriteLine(number1 != number2);
Console.WriteLine(number1 != number3);
}
}