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)
    D
    add
    (
    D
    )
    (
    in D left
    ,
    in D right
    ,
    Context context = D.context
    ,
    bool setFlags = true
    )
  2. D add(D left, U right, Context context, bool setFlags)

Meta