Value.CompareTo Method (Double)

Compares the current Value with another Double-precision floating-point number and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Double-precision floating-point number.

Namespace:  TcHmiSrv.Core
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public int CompareTo(
    double other
)

Parameters

other

Type: System.Double
A Double-precision floating-point number to compare with this Value.

Return Value

Type: Int32
A value that is less than zero if the current Value precedes other in the sort order, zero if the current Value occurs in the same position in the sort other as other or greater than zero if the current Value follows other in the sort order.

Implements

IComparable.T..CompareTo(T)

Reference

Value Class

CompareTo Overload

TcHmiSrv.Core Namespace