FixedBinary.round

FixedBinary round(RoundingMode mode) const @safe pure nothrow @nogc

Rounds to an integer value under an explicit rounding mode. The result wraps when the rounded integer does not fit the integer bits of the storage.

Parameters

modehow the discarded fraction rounds.

Returns

The nearest integer-valued FixedBinary per mode.