C# BigInteger Subtraction

Description

BigInteger Subtraction Subtracts a BigInteger value from another BigInteger value.

Syntax

BigInteger.Subtraction has the following syntax.


public static BigInteger operator -(
  BigInteger left,
  BigInteger right
)

Parameters

BigInteger.Subtraction has the following parameters.

  • left - The value to subtract from (the minuend).
  • right - The value to subtract (the subtrahend).

Returns

BigInteger.Subtraction method returns The result of subtracting right from left.

Example


using System;// w w w  .jav  a 2  s .c om
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        BigInteger num1 = 12312312;
        BigInteger num2 = 123123123;
        BigInteger result = num1 - num2;

    
   }
}




















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex