Decimal.floor

Calcurate floor value.

struct Decimal
const @nogc nothrow pure scope
floor
()

Return Value

Type: Decimal

floor value.

Examples

assert(Decimal(10, 1).floor == Decimal(1, 0));
assert(Decimal(11, 1).floor == Decimal(1, 0));
assert(Decimal(10001, 4).floor == Decimal(1, 0));
assert(Decimal(20001, 4).floor == Decimal(2, 0));

Meta