round

Rounds the number to the precision of the context parameter. if setFlags is false no context flags will be set by this operation. Returns the rounded number. Flags: SUBNORMAL, CLAMPED, OVERFLOW, INEXACT, ROUNDED.

  1. D round(D num)
  2. D round(D num, Context context, bool setFlags)
    package
    D
    round
    (
    D
    )
    (
    in D num
    ,
    Context context = D.context
    ,
    bool setFlags = true
    )
  3. D round(D num, int precision, Round mode, bool setFlags)

Meta