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
valueDecimal128A Decimal128.
Returns
- float
A Single.
ToSingle(double)
Converts a Double to a Single.
public float ToSingle(double value)
Parameters
valuedoubleA Double.
Returns
- float
A Single.
ToSingle(int)
Converts an Int32 to a Single.
public float ToSingle(int value)
Parameters
valueintAn Int32.
Returns
- float
A Single.
ToSingle(long)
Converts an Int64 to a Single.
public float ToSingle(long value)
Parameters
valuelongAn Int64.
Returns
- float
A Single.