currency.opBinary

Can add and subtract money amounts of the same type.

  1. T opBinary(T rhs)
    struct currency(string currency_name, int dec_places = 4, roundingMode rmode = roundingMode.HALF_UP)
    const
    opBinary
    (
    string op
    )
    (
    const T rhs
    )
    if (
    op != "/"
    )
  2. double opBinary(T rhs)
  3. T opBinary(long rhs)
  4. T opBinary(real rhs)

Meta