Table of Contents

Method ToInt64

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToInt64(Decimal128)

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

public static long ToInt64(Decimal128 d)

Parameters

d Decimal128

The number to convert.

Returns

long

A 64-bit signed integer equivalent to d.