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.