Table of Contents

Method ToInt16

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToInt16(Decimal128)

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

public static short ToInt16(Decimal128 d)

Parameters

d Decimal128

The number to convert.

Returns

short

A 16-bit signed integer equivalent to d.