BigInteger Constructor (Single)
Initializes a new instance of the BigInteger structure using a single-precision floating-point value.
Assembly: System.Numerics (in System.Numerics.dll)
Any fractional part of the value parameter is truncated when instantiating a BigInteger object.
Because of the lack of precision of the Single data type, calling this constructor can result in data loss.
The following example illustrates the use of the constructor to instantiate a BigInteger object. It also illustrates the loss of precision that may occur when you use the Single data type. A Single is assigned a large negative value, which is then assigned to a BigInteger object. As the output shows, this assignment involves a loss of precision. Both values are then incremented by one. The output shows that the BigInteger object reflects the changed value, whereas the Single object does not.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.