minus

operator fun minus(other: Amount<T>): Amount<T>

A checked subtraction operator is supported to simplify netting of Amounts.

Throws

if there is numeric underflow.

if this leads to the amount going negative, or would mix non-identical token types.