BigInteger Constructor (Int64)
Initializes a new instance of the BigInteger structure using a 64-bit signed integer value.
Assembly: System.Numerics (in System.Numerics.dll)
Parameters
- value
-
Type:
System::Int64
A 64-bit signed integer.
There is no loss of precision when instantiating a BigInteger object by using this constructor.
The BigInteger value that results from calling this constructor is identical to the value that results from assigning an Int64 value to a BigInteger.
The following example calls the BigInteger(Int64) constructor to instantiate BigInteger values from an array of 64-bit integers. It also uses implicit conversion to assign each 64-bit integer value to a BigInteger variable. It then compares the two values to establish that the resulting BigInteger values are the same.
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1