add

Adds the two operands. The result may be rounded and context flags may be set. Implements the 'add' function in the specification. (p. 26) Flags: INVALID_OPERATION, OVERFLOW.

  1. D add(D left, D right, Context context, bool setFlags)
  2. D add(D left, U right, Context context, bool setFlags)
    D
    add
    (
    D
    U
    )
    (
    in D left
    ,
    in U right
    ,
    Context context = D.context
    ,
    bool setFlags = true
    )

Meta