Skip to content

ExtendedNumerics.BigDecimal.CompareTo(ExtendedNumerics.BigDecimal)

Adam White edited this page Oct 7, 2024 · 1 revision

BigDecimal.CompareTo(BigDecimal) Method

Compares the current instance to a second BigDecimal and returns
an integer that indicates whether the current instance precedes, follows, or
occurs in the same position in the sort order as the other value.

public int CompareTo(ExtendedNumerics.BigDecimal other);

Parameters

other BigDecimal

The other value to compare with this instance.

Returns

System.Int32
A return value of less than zero means this instance precedes the other value in the sort order.
A return value of zero means this instance occurs in the same position in the sort order as the other value.
A return value of greater than zero means this instance follows the other value in the sort order.

Clone this wiki locally