Table of Contents

Method ToInt32

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToInt32(Decimal128)

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

public static int ToInt32(Decimal128 d)

Parameters

d Decimal128

The number to convert.

Returns

int

A 32-bit signed integer equivalent to d.