C# BigInteger Negate

Description

BigInteger Negate Negates a specified BigInteger value.

Syntax

BigInteger.Negate has the following syntax.


public static BigInteger Negate(
  BigInteger value
)

Parameters

BigInteger.Negate has the following parameters.

  • value - The value to negate.

Returns

BigInteger.Negate method returns The result of the value parameter multiplied by negative one (-1).

Example


using System;//from   w  ww .j a v a2s  . co m
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        BigInteger number = BigInteger.Negate(Int64.MinValue);
        Console.WriteLine(number);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex