FixedBinary.toInt

I toInt() const @safe pure nothrow @nogc

Truncating integer conversion (toward zero).

Returns

The value without its fraction, truncated toward zero.
I toInt(RoundingMode mode) const @safe pure nothrow @nogc

Integer conversion under an explicit rounding mode.

Parameters

modehow the discarded fraction rounds.

Returns

The nearest integer per mode.