C# BigInteger Decrement
Description
BigInteger Decrement
Decrements a BigInteger value by 1.
Syntax
BigInteger.Decrement
has the following syntax.
public static BigInteger operator --(
BigInteger value
)
Parameters
BigInteger.Decrement
has the following parameters.
value
- The value to decrement.
Returns
BigInteger.Decrement
method returns The value of the value parameter decremented by 1.
Example
using System;/*from w w w .j av a 2 s.c o m*/
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number = 123123123;
Console.WriteLine(--number);
BigInteger number1 = BigInteger.Pow(Int32.MaxValue, 2);
number1 = BigInteger.Subtract(number1, BigInteger.One);
Console.WriteLine(number1);
}
}
The code above generates the following result.