Gemstone Numeric Library
Show/Hide TOC

# UInt24CompareTo(Object) Method

Compares this instance to a specified object and returns an indication of their relative values.

## Definition

Namespace: Gemstone.Numeric
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.143 -- Release Build+7b47d813842cdbcdc1945a56970c7676cbda1a3a
C#
View Source Request Example

    public int CompareTo(
    	Object? value
    )

VB
View Source Request Example

    Public Function CompareTo (
    	value As Object
    ) As Integer

C++
View Source Request Example

    public:
    virtual int CompareTo(
    	Object^ value
    ) sealed

JavaScript
View Source Request Example

    function CompareTo(value);

#### Parameters

value Object
  An object to compare, or null.

#### Return Value

Int32
A signed number indicating the relative values of this instance and value. Returns less than zero if this instance is less than value, zero if this instance is equal to value, or greater than zero if this instance is greater than value.

#### Implements

IComparableCompareTo(Object)

## Exceptions

ArgumentException | value is not an UInt32 or UInt24.

## See Also

#### Reference

UInt24 Structure
CompareTo Overload
Gemstone.Numeric Namespace