Method ToInt16
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
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
The number to convert.
Returns
A 16-bit signed integer equivalent to d
.