roundToInt

Returns the nearest integer value to the argument. Context flags may be set. Implements the 'round-to-integral-exact' function in the specification. (p. 39) if setFlags is false, this is the 'round-to-integral-value' function.

D
roundToInt
(
D
)
(
in D num
,
in Round mode = HALF_EVEN
,
bool setFlags = true
)

Meta