Table of Contents

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 decimal

A decimal.

Returns

Decimal128

A Decimal128.

ToDecimal128(double)

Converts a Double to a Decimal128.

public Decimal128 ToDecimal128(double value)

Parameters

value double

A Double.

Returns

Decimal128

A Decimal128.

ToDecimal128(int)

Converts an Int32 to a Decimal128.

public Decimal128 ToDecimal128(int value)

Parameters

value int

An Int32.

Returns

Decimal128

A Decimal128.

ToDecimal128(long)

Converts an Int64 to a Decimal128.

public Decimal128 ToDecimal128(long value)

Parameters

value long

An Int64.

Returns

Decimal128

A Decimal128.

ToDecimal128(ulong)

Converts a UInt64 to a Decimal128.

[CLSCompliant(false)]
public Decimal128 ToDecimal128(ulong value)

Parameters

value ulong

A UInt64.

Returns

Decimal128

A Decimal128.