Initializes a new instance of the BigInteger structure using a Decimal value.
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
decimal[] decimalValues = { -1.5m, -1.1m, 1.7m, 9.3m };
foreach (decimal decimalValue in decimalValues)
{
BigInteger number = new BigInteger(decimalValue);
Console.WriteLine(number);
}
}
}
Related examples in the same category