Method ToDouble
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToDouble(decimal)
Converts a Decimal to a Double.
public double ToDouble(decimal value)
Parameters
value
decimalA Decimal.
Returns
- double
A Double.
ToDouble(Decimal128)
Converts a Decimal128 to a Double.
public double ToDouble(Decimal128 value)
Parameters
value
Decimal128A Decimal.
Returns
- double
A Double.
ToDouble(double)
Converts a Double to a Double.
public double ToDouble(double value)
Parameters
value
doubleA Double.
Returns
- double
A Double.
ToDouble(float)
Converts a Single to a Double.
public double ToDouble(float value)
Parameters
value
floatA Single.
Returns
- double
A Double.
ToDouble(int)
Converts an Int32 to a Double.
public double ToDouble(int value)
Parameters
value
intAn Int32.
Returns
- double
A Double.
ToDouble(long)
Converts an Int64 to a Double.
public double ToDouble(long value)
Parameters
value
longAn Int64.
Returns
- double
A Double.
ToDouble(short)
Converts an Int16 to a Double.
public double ToDouble(short value)
Parameters
value
shortAn Int16.
Returns
- double
A Double.
ToDouble(uint)
Converts a UInt32 to a Double.
[CLSCompliant(false)]
public double ToDouble(uint value)
Parameters
value
uintA UInt32.
Returns
- double
A Double.
ToDouble(ulong)
Converts a UInt64 to a Double.
[CLSCompliant(false)]
public double ToDouble(ulong value)
Parameters
value
ulongA UInt64.
Returns
- double
A Double.
ToDouble(ushort)
Converts a UInt16 to a Double.
[CLSCompliant(false)]
public double ToDouble(ushort value)
Parameters
value
ushortA UInt16.
Returns
- double
A Double.