Table of Contents

Method ToUInt16

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToUInt16(Decimal128)

Converts the value of the specified Decimal128 to the equivalent 16-bit unsigned integer.

[CLSCompliant(false)]
public static ushort ToUInt16(Decimal128 d)

Parameters

d Decimal128

The number to convert.

Returns

ushort

A 16-bit unsigned integer equivalent to d.