def fromInt32(i: Int32): ComparisonSource

Converts an integer to a Comparison value. The return value is: LessThan if i < 0. EqualTo if i == 0. GreaterThan if i > 0.

def toInt(c: Comparison): Int32Source

Converts a Comparison value to an integer. The return value is: -1 if c is LessThan. 0 if c is EqualTo. +1 if c is GreaterThan.