compareTo

operator external fun compareTo(other: UByte): Int(source)
operator external fun compareTo(other: UShort): Int(source)
open operator external override fun compareTo(other: UInt): Int(source)
operator external fun compareTo(other: ULong): Int(source)

Compares this value with other after numeric promotion.

Uses unsigned magnitudes without interpreting the high bit as a sign.

Return

-1, 0 or 1 when this value is less than, equal to or greater than other.

Parameters

other

value to compare with.