Method ToSingle
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToSingle(Decimal128)
Converts a Decimal128 to a Single.
public float ToSingle(Decimal128 value)
Parameters
value
Decimal128A Decimal128.
Returns
- float
A Single.
ToSingle(double)
Converts a Double to a Single.
public float ToSingle(double value)
Parameters
value
doubleA Double.
Returns
- float
A Single.
ToSingle(int)
Converts an Int32 to a Single.
public float ToSingle(int value)
Parameters
value
intAn Int32.
Returns
- float
A Single.
ToSingle(long)
Converts an Int64 to a Single.
public float ToSingle(long value)
Parameters
value
longAn Int64.
Returns
- float
A Single.