Method ToDecimal128
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToDecimal128(decimal)
Converts a decimal to a Decimal128.
public Decimal128 ToDecimal128(decimal value)
Parameters
value
decimalA decimal.
Returns
- Decimal128
A Decimal128.
ToDecimal128(double)
Converts a Double to a Decimal128.
public Decimal128 ToDecimal128(double value)
Parameters
value
doubleA Double.
Returns
- Decimal128
A Decimal128.
ToDecimal128(int)
Converts an Int32 to a Decimal128.
public Decimal128 ToDecimal128(int value)
Parameters
value
intAn Int32.
Returns
- Decimal128
A Decimal128.
ToDecimal128(long)
Converts an Int64 to a Decimal128.
public Decimal128 ToDecimal128(long value)
Parameters
value
longAn Int64.
Returns
- Decimal128
A Decimal128.
ToDecimal128(ulong)
Converts a UInt64 to a Decimal128.
[CLSCompliant(false)]
public Decimal128 ToDecimal128(ulong value)
Parameters
value
ulongA UInt64.
Returns
- Decimal128
A Decimal128.