currency.opCmp

Can compare with money amounts of the same concurrency.

  1. int opCmp(OT other)
    struct currency(string currency_name, int dec_places = 4, roundingMode rmode = roundingMode.HALF_UP)
    const
    int
    opCmp
    (
    OT
    )
    (
    const OT other
    )
    if (
    isCurrency!OT &&
    other.__currency == currency_name
    )
  2. int opCmp(T other)

Meta