Table of Contents

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 Decimal128

A Decimal128.

Returns

decimal

A Decimal.

ToDecimal(double)

Converts a Double to a Decimal.

public decimal ToDecimal(double value)

Parameters

value double

A Double.

Returns

decimal

A Decimal.

ToDecimal(int)

Converts an Int32 to a Decimal.

public decimal ToDecimal(int value)

Parameters

value int

An Int32.

Returns

decimal

A Decimal.

ToDecimal(long)

Converts an Int64 to a Decimal.

public decimal ToDecimal(long value)

Parameters

value long

An Int64.

Returns

decimal

A Decimal.