Click or drag to resize

Decimal128Compare Method

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.

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public static int Compare(
	Decimal128 x,
	Decimal128 y
)

Parameters

x
Type: MongoDB.BsonDecimal128
The first value.
y
Type: MongoDB.BsonDecimal128
The second value.

Return Value

Type: Int32
Less than zero if x < y, zero if x == y, and greater than zero if x > y.
See Also