Table of Contents

Method Compare

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Compare(Decimal128, Decimal128)

Compares two specified Decimal128 values and returns an integer that indicates whether the first value is greater than, less than, or equal to the second value.

public static int Compare(Decimal128 x, Decimal128 y)

Parameters

x Decimal128

The first value.

y Decimal128

The second value.

Returns

int

Less than zero if x < y, zero if x == y, and greater than zero if x > y.