The OpenD Programming Language

Int128.opCmp

support arithmentic comparison operators < <= > >=

  1. int opCmp(Int128 op2)
  2. int opCmp(Int op2)
  3. int opCmp(IntLike op2)
    struct Int128
    const
    int
    opCmp
    (
    IntLike
    )
    (
    auto ref IntLike op2
    )
    if (
    is(IntLike : long) &&
    !__traits(isIntegral, IntLike)
    )

Return Value

Type: int

-1 for less than, 0 for equals, 1 for greater than

Meta