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