Decimal.opUnary

  1. auto opUnary()
    struct Decimal(Hook = Abort)
    const
    opUnary
    (
    string op
    )
    ()
    if (
    op == "-" ||
    op == "+"
    )
  2. Decimal!(Hook) opUnary()

Return Value

Type: auto

+ simply returns a copy of this unchanged. - returns a copy of this with the sign flipped for everything but 0 and NaNs.

Does not modify the decimal in place.

Meta