Table of Contents

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 decimal

A Decimal.

Returns

double

A Double.

ToDouble(Decimal128)

Converts a Decimal128 to a Double.

public double ToDouble(Decimal128 value)

Parameters

value Decimal128

A Decimal.

Returns

double

A Double.

ToDouble(double)

Converts a Double to a Double.

public double ToDouble(double value)

Parameters

value double

A Double.

Returns

double

A Double.

ToDouble(float)

Converts a Single to a Double.

public double ToDouble(float value)

Parameters

value float

A Single.

Returns

double

A Double.

ToDouble(int)

Converts an Int32 to a Double.

public double ToDouble(int value)

Parameters

value int

An Int32.

Returns

double

A Double.

ToDouble(long)

Converts an Int64 to a Double.

public double ToDouble(long value)

Parameters

value long

An Int64.

Returns

double

A Double.

ToDouble(short)

Converts an Int16 to a Double.

public double ToDouble(short value)

Parameters

value short

An Int16.

Returns

double

A Double.

ToDouble(uint)

Converts a UInt32 to a Double.

[CLSCompliant(false)]
public double ToDouble(uint value)

Parameters

value uint

A UInt32.

Returns

double

A Double.

ToDouble(ulong)

Converts a UInt64 to a Double.

[CLSCompliant(false)]
public double ToDouble(ulong value)

Parameters

value ulong

A UInt64.

Returns

double

A Double.

ToDouble(ushort)

Converts a UInt16 to a Double.

[CLSCompliant(false)]
public double ToDouble(ushort value)

Parameters

value ushort

A UInt16.

Returns

double

A Double.