round

Rounds the number to the specified precision using the specified rounding mode. if setFlags is false none of the context flags will be set by this operation. Flags: SUBNORMAL, CLAMPED, OVERFLOW, INEXACT, ROUNDED.

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

Meta