C# BigInteger IsZero

Description

BigInteger IsZero Indicates whether the value of the current BigInteger object is BigInteger.Zero.

Syntax

BigInteger.IsZero has the following syntax.


public bool IsZero { get; }

Example


using System;// w w  w .  j a  v  a2 s. co m
using System.Numerics;

public class Example
{
   public static void Main()
   {
      BigInteger b = BigInteger.Pow(Int64.MaxValue, 2);

      Console.WriteLine(b.IsZero);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex