Function Amount.sub

Substract another value from this Amount

bool sub (
  in const(Amount) other
) pure nothrow @nogc @safe;

Parameters

NameDescription
other Another Amount value. If the value is invalid, false will be returned.

Returns

true if the addition returned a number within bounds. false if the number is out of the [0; MaxUnitSupply] bound.