C# BigInteger IsOne
Description
BigInteger IsOne
Indicates whether the value of the current
BigInteger object is BigInteger.One.
Syntax
BigInteger.IsOne
has the following syntax.
public bool IsOne { get; }
Example
using System;/* ww w . jav a 2s. c o m*/
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger b = BigInteger.Pow(Int64.MaxValue, 2);
Console.WriteLine(b.IsOne);
}
}
The code above generates the following result.